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 are dml and ddl?

973


Explain about the drive manager class working?

1088


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

1020


What are four types of JDBC driver?

1118


Can I use JDBC to execute non-standard features that my DBMS provides?

974


What is ojdbc14 jar?

890


Briefly tell about the jdbc architecture.

971


What is metadata in jdbc?

975


What is executequery in java?

876


What is the difference between setmaxrows(int) and setfetchsize(int)?

1037


How do I check in my code whether a maximum limit of database connections have been reached?

979


What is the query used to display all tables names in SQL Server (Query analyzer)?

1046


Discuss the significances of jdbc.

913


What is ojvm used for?

973


How does jdbc driver work?

970