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

when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise?

Answer Posted / gaurav agrawal

why are you misguiding the people, class.forName("") create
the instance of the class given as argument of the forName
().
first it will load the class in the JVM and after that it
will create the instance.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data type modifier?

991


What is executor memory?

1004


What is a class object?

1015


What is application tier?

1182


How you can force the garbage collection?

1033


Distinguish between a predicate and a function?

1046


What is the static field modifier?

1172


What is the difference between variable declaration and variable initialization?

1096


What is the difference between a method and a function in alice?

1283


Can we execute java program without main method?

1193


What is anonymous inner class?

1126


What is object in java?

1040


What is the difference between char and char *?

1147


Can a constructor be private and how are this() and super() method used with constructor?

1051


How can we make copy of a java object?

1214