View Single Post
Old 30-12-2009, 09:29 PM   #1
rajesh
Member
 
rajesh's Avatar
 
Join Date: Dec 2009
Posts: 76
Rep Power: 15
rajesh is on a distinguished road
Question What are the other ways to create an object other than creating as new object?

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
rajesh is offline   Reply With Quote