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 use of inner class in java?

1036


How do you check if two given string are anagrams?

912


Who found java?

938


Can we declare main () method as non static?

917


How would you dynamically allocate memory to an array?

991


what are the states associated in the thread? : Java thread

998


Is null an object in java?

976


What is difference between add() and addelement() in vector?

1483


How to check if a list is sorted in java?

972


What is static import?

1095


Is string pool garbage collected?

949


Is class forname reflection?

911


What are jee technologies?

961


What is thread safe in java?

938


How many types of keywords are there?

937