chapter 6
q1) What is jdbc?
q2) What doi you understand by jdbc-odbc?
q3) Complete the followin statement:
JDBC perform the following:....
1)
2)
3)
q4) Write down Various steps involved in connection a database with an application using JDBC .
q5)Differentiate between executeUpdate() and executeRow();
q6)Find errors in the following code:
import java.sql.*;
.
.
try {
connection con=DriverManager.getConnection(“jdbc:mysql://localhost/test”,root,”wxyz”);
Statement stmt=con.createStatement( );
sql= “SELECT empno,enmae,job,sal From Empl;”;
ResultSet rs=stmt.executeQuery(sql);
}
catch (Exception e) { }
q7)What are the steps to connect to a database with a java application?
q8). What is database connectivity? How is database connectivity useful?
q9) How can you make the connections? Write statements.
q10)Name the package you need to import for performing database connectivity.
q11) What is the purpose of Class.forName() method?
q12)Classes used for Database Connectivity are: ?
q13)Explain the connection in context to database connectivity
q1) What is jdbc?
q2) What doi you understand by jdbc-odbc?
q3) Complete the followin statement:
JDBC perform the following:....
1)
2)
3)
q4) Write down Various steps involved in connection a database with an application using JDBC .
q5)Differentiate between executeUpdate() and executeRow();
q6)Find errors in the following code:
import java.sql.*;
.
.
try {
connection con=DriverManager.getConnection(“jdbc:mysql://localhost/test”,root,”wxyz”);
Statement stmt=con.createStatement( );
sql= “SELECT empno,enmae,job,sal From Empl;”;
ResultSet rs=stmt.executeQuery(sql);
}
catch (Exception e) { }
q7)What are the steps to connect to a database with a java application?
q8). What is database connectivity? How is database connectivity useful?
q9) How can you make the connections? Write statements.
q10)Name the package you need to import for performing database connectivity.
q11) What is the purpose of Class.forName() method?
q12)Classes used for Database Connectivity are: ?
q13)Explain the connection in context to database connectivity
No comments:
Post a Comment