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 the use of Class.forName

Answers were Sorted based on User's Feedback



What is the use of Class.forName..

Answer / rajshekhar

class.forName() is used to load the jdbc driver.
class is a class and for name is a static method its syntax
is
Class.forName("sun.jdbc:odbc:JdbcOdbcDriver");

Is This Answer Correct ?    1 Yes 2 No

What is the use of Class.forName..

Answer / amol sawant

Class.forName(driver);

in this "Class" is the name of the Object of "Class" class
which is in sql package
and forName();
is method of that class "Class"
it will load the driver for connection purpose

Is This Answer Correct ?    0 Yes 1 No

What is the use of Class.forName..

Answer / ramaiah raj

Class.forName(String ClassName); Here Class is Predefined
class.forName(String className) is method used to create the
object which declared as abstract. In JDBC the Driver class
is an abstract class. So in order to create a instance
forName method is used.

Is This Answer Correct ?    0 Yes 1 No

What is the use of Class.forName..

Answer / bhagya raju vallabhapuram

loads the class into jvm's memory with out creating the object

Is This Answer Correct ?    0 Yes 1 No

What is the use of Class.forName..

Answer / poonam verma

It loads class once and execute static block.

Is This Answer Correct ?    0 Yes 3 No

What is the use of Class.forName..

Answer / ambika

it is used to load the driver in database
its a first step of connection of database
structure:
class.forName("sun.jdbc:odbc:jdbcodbcDriver")

Is This Answer Correct ?    12 Yes 18 No

What is the use of Class.forName..

Answer / devarathnam c,kotagudibanda(po

Hi...
Class.forName();method facilitates you to loading the
driver inorder to providing the connection between the
forntend and backend for database transactions.

Is This Answer Correct ?    2 Yes 15 No

What is the use of Class.forName..

Answer / nk

The class.forname provides a mechanism to define driver at
run time.

Is This Answer Correct ?    8 Yes 23 No

What is the use of Class.forName..

Answer / gopalramana

class.forName("abc.class")
loads ths class and create instance in JVM.

Is This Answer Correct ?    2 Yes 20 No

What is the use of Class.forName..

Answer / chaitanya

Nenu Cheppanu

Is This Answer Correct ?    10 Yes 32 No

Post New Answer

More Advanced Java Interview Questions

What is a thread?

3 Answers  


whats is mean by jndi

4 Answers   SolutionNET,


What is local interface. How values will be passed?

0 Answers  


Why a client should be multithreading? Explain.

0 Answers  


How u validate date in DD/MM/YY format. and how u validate money in ur jsp

3 Answers   Ashok Leyland, Satyam, Tech Mahindra, Tomax,


What are the disadvantages of using threads?

3 Answers   Oracle, SFS,


what is handle?

0 Answers  


What is a clone?

0 Answers  


How to do registration form using struts and hibernate?

1 Answers  


What are JTA/JTS and how they used by client?

0 Answers  


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

0 Answers  


what is the difference between System.out.println and out.println in java

10 Answers   CTS,


Categories