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

Prepared statements are faster. Why?

1054


What are the new features added to JDBC 4.0?

958


What are the exceptions in jdbc?

966


When does the result for an sql statement return null?

927


Describe how the jdbc application works.

1030


What is the advantage of namedparameterjdbctemplate?

964


How many jdbc driver types are there?

923


What are the methods which can verify the cursor particular position?

1019


What is jdbc oracle thin?

876


What are the different types of statements in jdbc?

922


What is jdbc odbc driver?

1035


How vendor Naming registry supports JNDI?

2206


What is resultsetmetadata?

906


Discuss the significances of jdbc.

924


How do I connect to jdbc?

950