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

Which eclipse is best for java?

986


What is stack example?

1009


Can anonymous class have constructor?

1005


What are the types of methodology?

1078


What are new features introduced with java 8 ?

974


How many java versions are there?

1032


What is main difference between variable and constant?

1017


Which class represents the socket that both the client and server use to communicate with each other?

1014


What is the difference between variable declaration and variable initialization?

1015


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11152


What is the size of boolean variable?

1059


How can I become a good programmer?

963


What is the difference between multiple processes and multiple threads?

1183


What is method overloading and method overriding?

1042


What is boolean in java?

953