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

what is class.forname() and how it will be useful ?

Answer Posted / amit singh

it is useful when you don't know about the class as compile
time you must to use it you pass the class name as a string
and
its a part of reflection api
but you used it when you connect through db
and many more you should do when you don't know the class
at compile time
and also above which mention by pradip right
amitsingh200@gmail.com
amit09mca(scjp 1.5 and manymore)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class variable?

1099


What is internal variable?

1069


What is the gregoriancalendar class in java programming?

1093


What is the syntax and characteristics of a lambda expression? Explain

1094


Define how objects are stored in java?

1120


What is the difference between a scrollbar and a scrollpane?

1110


Explain the available thread states in a high-level?

1012


What is local declaration?

1040


What does i ++ mean in Java?

1004


Which collections are thread safe in java?

961


What is the difference between static and global variables and also define what are volatile variables?

1105


How do you write a conditional statement?

1012


Is minecraft java edition free?

1170


do I need to use synchronized on setvalue(int)? : Java thread

1056


How hashmap increases its size in java?

1040