Give me brief description with small Example
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?
How can we call a stored procedure in Java using CallableStatements? Give an example.
Latest Answer: first get connection objectConnection con=DriverManager.getConnection(); (we can get by datasourse object also)CallableStatement cstmt=con.prepareCall("{ call procedurename(?,?,?,?) }");cstmt.setString(1,ID);cstmt.setString(2,name);....ucount=cstmt.executeUpdate(); ...
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' ...
Which of the following values can be replaced in the place of 1 and 2 below Statement stmt= con.createStatement(1,2);a) ResultSet. TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLYb) ResultSet. TYPE_SCROLL_INSENSITIVE,
Latest Answer: Here a and b can be used for (1,2) place respectivly. ...
Consider the following:-ID [_______]Name [_______]Marks [_______]NEW EDIT CLOSEThis is a form which I have made. What i need is When I click on NEW button, if textboxes should
Latest Answer: Hi Dude..It's a a very simple problem what u need to do is ..Let, JButton n1=new JButton("New"); n1.setActionCommand("New"); JButton n1=new JButton("Save"); n1.setActionCommand("Save");....public void ...
View page [1] 2 3 4 5 6 7 8 9 10 Next >>

Go Top