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 does the method Class.forName returns?

Answer Posted / uv

When Class.forName("<classname>") function gets
executed,the class gets loaded in JVM.

To create an object and access its functions and variables,
we can use getInstance( ), please look into the below
fragment code:

Class c = Class.forName("Cls");
Object o = null;
o = c.getInstance( );
// type casting the Object
Cls cl = (Cls) o;

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is odbc. how is it related to sql cli?

1093


How the JDBC application works?

1005


What is connection pooling and why it is used?

1060


What is ojdbc?

996


How to set NULL values in JDBC PreparedStatement?

1027


Is jdbc a middleware?

1003


What is JDBC Savepoint? How to use it?

1294


Where is ojdbc14 jar located?

991


Is jpa faster than jdbc?

930


How to move the cursor in scrollable resultset ?

1094


What is ojvm used for?

1043


What is the meaning of “dirty read” in the database?

1094


What do you understand by jdbc driver and explain its types?

999


Is jdbc open source?

926


How many types of resultset are there in jdbc?

1011