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 is hotjava?

1012


What is the base class of all exception classes?

1073


Can we cast any other type to boolean type with type casting?

961


What is the difference between call by reference and call by pointer?

973


Explain list interface?

968


What is a functional interface?

1048


What are wrapper classes in java?

1081


What is independent and dependent variables in research?

875


What do you mean by global variable?

960


What is arrays sort in java?

970


Is it possible to compare various strings with the help of == operator? What are the risks involved?

1076


What is the driver class?

1049


What does provide mean construction?

1108


How to perform quicksort in java?

1123


What do bitwise operators do?

1019