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

Which collections are thread safe in java?

931


What is an error in java?

1159


why not override thread to make a runnable? : Java thread

1011


What is a "pure virtual" member function?

1104


Explain restrictions for using anonymous inner classes?

1099


How to sort an unsorted array in java?

1138


Can we declare array without size in java?

1042


Difference between final and effectively final ?

1114


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

11221


Enlist few advantages of inheritance?

1076


What exactly is a .class file?

1053


Is array a class?

942


What is a Null object?

1647


What is variable and constant explain with example?

1104


What is the order of arraylist in java?

1144