Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
JDBC
« Previous
Next »
JDBC facilitates to store the Java objects by using which of the methods of PreparedStatement 1. setObject () 2. setBlob() 3. setClob()
Options
- 1, 2
- 1,2,3
- 1,3
- 2,3
CORRECT ANSWER : 1,2,3
Discussion Board
Prepared Statements
PreparedStatement object are used for the ease of calling the methods or for sending SQL statements to the database. It is a special type of statement derived from the more general class, Statement. It reduces the execution time when a statement object needs to be executed many times. JDBC uses methods like:
1) setobject() - The setObject( ) method can insert Java object types into the database, provided that those objects can be converted to standard SQL types.
2) setBlob()
3) setClob()
to store the java objects. PreparedStatement object contains not just a SQL statement, but a precompiled SQL statement.
Rohit Sharma 09-11-2014 05:11 PM
« 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
▲