java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }
6 25306How to create Connection interface object because it is Interface , Interface is not instansiated?
9 19518Post New CTS JDBC Interview Questions
What is shear stress?
why we use 19x9x9and 20x10x10 but not other
What is the dos command to open a file?
I have a few records just I want to store data in to targets cycling way how?
Can excel be a database?
How many constructor can a class have?
Tell me how we can manage the user login sessions in maximo?
What are two command-line utilities that can be used to check tcp/ip configurations and ip connectivity, respectively?
Is it possible to initialize a variable at the time it was declared?
a) we have 30nos., 300mm dia, 4m length double under reamed piles.calculate excavation quantity.b) tell concrete qty. also.
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
What is the difference between atomic and nonatomic properties?
Does magento charge transaction fees?
Can excel open xml files?
Why does the sockets buffer fill up sooner than expected?