1.in JDBC what is "thin" and "thick" clients2.what is difference between "thin" connection and "oci" connection
Latest Answer : Creating a Connection object is one of the most expensive operations in database programming so we use connection pooling.When the application starts, a certain number of Connection objects are created and stored in a pool. When a database client, such ...
one from DATASoURCE second from DriverManager.getConnectionprogram using a DataSource and a PooledConnection is: import javax.naming.*;import javax.sql.*;...Context context = new InitialContext(); DataSource
Latest Answer : import java.sql.*;public class JDBC { connection con = DriverManager.getConnection("jdbc:odbc:url","scott","tiger"); } ...
1)what is main difference between EJB & RMI & SOCKET?2)what is difference between prepareStatement and Statement?
Can I write a return statement in the catch clause,which is followed by a finally block?Will the code compile?How is the code executed?
I have created one MVC architecture.But i am getting the error asHTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description
In java ressultset,statement,preparesatement are interfaces without implementation how to those interfaces
Hi..Friends.Recently in an interview..recruiter asked me a question..both httpservletrequest and httpservletresponse are interfaces....then how a container creates objects for that interfaces...? friends....can u clarify me?
Problem in connection with Oracle without ODBC using Think DriverFollowing code is not workinggiving error Exception in thread Main java.lang.NoClassDefFoundError:jdbc1import java.sql.*;class jdbc1 { public static void main(String args[]) { try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection c=DriverManager.getConnection("jdbc:oracle:thin:@hostname:1521:sid","scott","tiger" ); Statement s=c.createStatement(); ResultSet
When iam tring to insert a pdf of 2mb in to oracle database.This is my source code.import java.io.File;import java.io.FileInputStream;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;public class PDFConnect { public static void main(String args[]) { try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.81.7.169:1521:PTS", "TESTPTS", "TESTPTS"); System.out.println("connection