Netcompany interview question

Ways of creating an object in Java