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 statement is static and synchronized in JDBC API?
Options
- executeQuery()
- executeUpdate()
- getConnection()
- prepareCall()
CORRECT ANSWER : getConnection()
Discussion Board
JDBC API
JDBC API is used to access a database from a Java application. In this case user need to provide the code to register the installed driver with the program. SQL driver manager is used with static registerDriver(). This class provides the basic requirements and methods to assign the JDBC drivers. getConnection() method allows the program to get the connection to run the program. This method takes the following structure:
getConnection(String URL);
Where the URL is of the form:
jdbc:oracle:<drivertype>:<user>/<password>@<database>
1)URL
2)UserName - scott
3)Password - tiger
Rohit Sharma 08-27-2014 02:08 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
▲