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 Class.forName return?

Answers were Sorted based on User's Feedback



What does Class.forName return?..

Answer / ranganathkini

The Class.forName( String name ) returns a java.lang.Class
object associated with the class or interface with the
specified fully qualified name.

Is This Answer Correct ?    17 Yes 2 No

What does Class.forName return?..

Answer / karthik

Class.forName attempts to load the class whose name is
given in its only argument, and returns the Class instance
representing that class. In the
event that the Class could not be found, resolved, verified,
or loaded, Class.forName
throws one of several different Exceptions

Is This Answer Correct ?    9 Yes 1 No

What does Class.forName return?..

Answer / ashish

yes sure it returns java.lang.class object.

Is This Answer Correct ?    7 Yes 1 No

What does Class.forName return?..

Answer / rajiv

hi......
Class.forName() is basically used to load the diver. forName() is static method thats why its directly call with class name( i:e Class)
which return java.lang.class object. n with the help of that object we establish the connection with database.

Is This Answer Correct ?    3 Yes 0 No

What does Class.forName return?..

Answer / prashant

Class.forNmae first loads the class in current classLoader so as to use that in future. Internally DriverManager gets the reference of the driver by using dynamic laoding (nothing is magical) this is is the reason when you say manager.GetConnection() it returns connection using the loaded driver

Is This Answer Correct ?    1 Yes 0 No

What does Class.forName return?..

Answer / sushant

the database hs been created using SQL server which is ODBC
complaint. Hence the JDBC-ODBC bridge driver will be used
to communication width the database the folloeing
statement will be used to load this driver

Is This Answer Correct ?    3 Yes 3 No

What does Class.forName return?..

Answer / surya, samcomm technologies pv

yes. It does return Class type.

code:-

try {
Class clazz=Class.forName("");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}

Is This Answer Correct ?    1 Yes 3 No

What does Class.forName return?..

Answer / sushant

Exception and SQLException

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More JDBC Interview Questions

i am user who logined the application..after that another valid user will also logind..so that is it neccessary to create jdbc connection for each and every user...plz explain it with proper answer...plz help me

5 Answers   IBM,


What is jdbc and why is it required?

0 Answers  


What are the new features added to JDBC 4.0?

0 Answers  


What are static and dynamic queries?

1 Answers  


Explain the difference between rowset vs. Resultset in jdbc?

0 Answers  


What is PreparedStatement?

6 Answers   Infogain, Wipro,


Why do we use jdbc in java?

0 Answers  


What is jdbc connection string?

0 Answers  


Hi to all.. well i want to make a standalone application which can use the concept of connection pooling, constraint is that i have not to use any application server like weblogic etc. Please help me out. Thaks in advance.

3 Answers   Huawei,


What are the different classes through which JDBC represents statements?

0 Answers  


what happens if connection is not closed?

7 Answers   CTS,


What is jndi lookup?

0 Answers  


Categories