When would you use a JDBC-ODBC Bridge?
Latest Answer: We use JDBC-ODBC Bridge is when alternative of a pure-Java driver is not available. ...
Name the method that gives the existing isolation level in JDBC.
Latest Answer: Isolation level represent how a database maintains data integrity against the problems like dirty reads, phantom reads and non-repeatable reads which can occur due to concurrent transactions. java.sql.Connection interface provides methods and constantsYou ...
Give me brief description with small Example
Latest Answer: Type 1 JDBC-ODBC Bridge.Translate JDBC call into ODBC call and sends them to ODBC Driver. Pros
- All most ODBC Drivers are already available.Cons - Performance Degrade Type 4 A native-protocol fully Java technology. Native-protocol ...
Hi,I tried using connection pooling concept through weblogic 8.1 .import java.sql.*;import javax.naming.*;import javax.sql.DataSource;public class ConnectionpoolDemo { public static void main(String[]
Latest Answer: try using this code............import java.util.*;import java.sql.*;import javax.sql.*;import javax.naming.*;public class ConnectionPool{ public static void main(String args[]) { try { Hashtable hs=new ...
Explain with examples for SCROLLABLE_SENSITIVE resultset?
Latest Answer: Scrollable means the cursor can move forward or backward and Sensitive meansex:If u are using SCROLLABLE_SENSITIVE resultset i.e u have opened the result setIf any other person makes changes like inserting,updating or deleting ,the changes which are effected ...
What is the functionality of the cancel() method, provided in java.sql.Statement?
Latest Answer: Cancels the Statement object if both the DBMS and driver support aborting an SQL statement. This method can be used by one thread to cancel a statement that is being executed by another thread. ...
How can we call a stored procedure in Java using CallableStatements? Give an example.
Latest Answer: import java.sql.CallableStatement;import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;public class Sample{ public static void main(String[] args) { ...
which of the following methods eliminates the need to call wasNull() method to handle null database fields?a)getObject()b)getInt()c)getString()d)getFloat()e)getNull()
Latest Answer: Two Ways:1> Use the wasNull() method on the ResultSet.2> Use the getObject() method on the ResultSet and do the Comparision. ...
A user leaves an online shopping cart without checking out.Which of the following interfaces will notify to rollback the transaction?
A user leaves an online shopping cart without checking out.Which of the following interfaces will notify to rollback the transaction?a)HttpSessionb)HttpSessionBindingListenerc)HttpServletd)SingleThreadModele)FtpSession
Resultset objects follow index pattern ofa)Array standardb)java standardc)RDBMS standardd)c++ standarde)pl/sql standard
Latest Answer: It should be 'Array standard' ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top