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...

There are 2 different ways to create an object. a)By using
keyword "new" b)By using Class.forName
("className").newInstance();
What is the difference between these 2 methods.

Answer Posted / ratnesh gupta

the first way to create an object is 'class name object
name'and the secondone is classNameAsArgument").newInstance
();

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you control extraneous variables?

912


What does percent mean in java?

1018


Why arraylist is used in java?

1064


What are keywords and reserved words in java?

1052


What is the use of accept () method in java?

1084


What is the difference between class forname and new?

998


What is singleton math?

1121


What is a programming object?

1098


What is the purpose of the system class in java?

1041


What is a marker interface?

1151


What are the features of java?

1071


what is the swingutilities.invokelater(runnable) method for? : Java thread

1034


What does it mean that strings are immutable?

1121


List some features of the abstract class.

1051


What are the differences between processes and threads?

1061