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

How do you call a reference in java?

980


What is singleton class in java and how can we make a class singleton?

1158


Is minecraft 1.15 out?

975


What is nullpointerexception?

1069


Explain what access modifiers can be used for variables?

1056


What is private static in java?

1039


Can I overload to string method

1440


When is the finally clause of a try-catch-finally statement executed?

1061


Can we use both this () and super () in a constructor?

1002


How do you know if a value is nan?

1057


how we can make a read-only class in java?

989


What is java object name?

991


What is public static void main?

1098


What must a class do to implement an interface in java programming?

1052


Can we overload the main() method?

1043