PDA

View Full Version : What are the other ways to create an object other than creating as new object?


rajesh
30-12-2009, 09:29 PM
We can create object in different ways;

1.new operator

2.class.forName: Classname obj = Class.forName(”Fully Qualified class Name”).newInstance();

3.newInstance

4.object.clone