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 / raghu

When Class.forNmae("className") is executed, the class will
be loaded, as soon as the class is loaded the static block
will be executed.In the static block the thngs will happen.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parameter example?

1003


Is class is a data type?

1062


Difference between collection, collection and collections in java?

994


Is oracle java 11 free?

926


What's the difference between an abstract class and interface in java?

1012


What is a linkedhashmap java?

986


Explain constructors and types of constructors in java.

1087


What is private static in java?

1030


What is type parameter in java?

941


How do you initialize an arraylist in java?

1022


Why singleton is not thread safe?

976


What is bifunction in java?

1165


What do you know about the garbate collector?

999


Can constructor be protected in java?

947


What is method with example?

1094