Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.

Answer Posted / saravanan p

By using Class d=Class.forName("className");
Object obj=c.newInstance();

Is This Answer Correct ?    77 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does .length start 0 java?

1011


Name few java util classes introduced with java 8 ?

917


How can we make sure main() is the last thread to finish in java program?

1201


Differentiate jar and war files?

1041


What is the difference between dom and sax parser in java?

975


Difference between Linked list and Queue?

1029


How do you input a string in java?

1082


What is a variable simple definition?

1020


What is a "pure virtual" member function?

1101


How big is a 32 bit integer?

1044


Is it necessary that each try block must be followed by a catch block?

1020


What is the primitive type short?

1019


what is nested class in java?

1176


What is the basic concept of java?

1019


What are the different types of inner classes?

1038