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

What are examples of modifiers?

1127


What is public static?

1034


What is a variable and constant?

1003


What are user defined exceptions?

1049


What is the difference between Array and Hash Table?

1032


What is the difference between a choice and a list?

1079


Define an applet in java?

1161


How do you print array in java?

989


How do you sort in descending order in java using collections sort?

898


What is java in simple terms?

999


What is class and object in java?

1005


What is reverse function?

1132


What interface is extended by awt event listeners?

1058


Can a main method be declared final?

1056


How do you check if a character in a string is a digit or letter?

1072