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

Differentiate between postfix and prefix operators in java.

1105


How do you reverse a string in java?

1084


When is finally block not called?

1071


Describe 2 different ways to concatenate two strings.

1185


What is a memory leak in java?

1048


What are 4 pillers of object orinted programming?

989


What is the main method java?

1006


Explain the protected field modifier?

1064


How do you read and print a string in java?

938


what are Hostile Applets?

2059


What is the importance of finally block in exception handling?

1008


What are the differences between forwarding () method and sendredirect() methods?

1093


What is a text string?

1059


What are local variables?

1026


Why is multithreading important?

926