Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
JDBC
« Previous
Next »
Which of the following methods are needed for loading a database driver in JDBC?
Options
- registerDriver() method
- Class.forName()
- Both A and B
- getConnection()
CORRECT ANSWER : Both A and B
Discussion Board
JDBC Driver
JDBC is a Java-based data access technology (Java Standard Edition platform) and used to provide the database connectivity through which the clients can access the applications. JDBC also provides the API through which it defines how a client may access a database. It provides methods for querying and updating data in a database.
The answer of the above question is:
1) registerDriver() method - provides the functionality to register the drivers so that they can function properly and don't have to be changed or installed again and again
2) Class.forName() - is having the value as string and used to load the JDBC driver class.
Class.forName( "com.somejdbcvendor.TheirJdbcDriver" );
Rohit Sharma 09-21-2014 07:23 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲