| Other JDBC Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the latest version of JDBC? What new features are
added? | | 3 |
| How to find total column from a resultset? | tsys | 5 |
| What is JDBC? | | 2 |
| write down exceptions those appear in java programs when u
write JDBC Programs? | | 2 |
| What is the difference between triggers and procedures? | | 1 |
| What is a Connection? | | 1 |
| How the information about db(database) can be retrieved? | | 3 |
| wa is connection pooling? how do u create connection
pooling?wat is use connection pooling? | Covansys | 1 |
| Hi........I need to create a dropdown box using
java.....this box should show the values that should be
taken from the database......
Thank you.... | | 1 |
| What is 2-tier and 3-tier architecture? | TCS | 1 |
| Which Driver is preferable for using JDBC API in Applets? | | 1 |
| What is the syntax of URL to get connection? | | 1 |
| Difference between JDBC and Hibernate?
Give one sample based on the variance? | IBM | 2 |
| dear friends
I have made connection with SQLSERVER where the following
code is compiling properly but giving error at the runtime .
I think error in this line where i am sending the value
through string
Connection connection = DriverManager.getConnection
( "jdbc:microsoft:sqlserver://localhost:1433","sa","");
import java.sql.*;
//import mssqlserver.*;
public class TestSQLCON
{
public TestSQLCON() throws Exception
{
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
System.out.println();
System.out.println("Successfully connected one");
System.out.println();
Connection connection = DriverManager.getConnection
( "jdbc:microsoft:sqlserver://localhost:1433","sa","");
if (connection != null)
{
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: " +
meta.getDriverName());
System.out.println("Driver Version: " +
meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: " +
meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
}
}
public static void main (String args[]) throws Exception
{
TestSQLCON test = new TestSQLCON();
}
}
so please help me | | 1 |
| wahts is mean by primary key and unique key? | Wipro | 7 |
| How do you debug PL/SQL code? | | 1 |
| How a driver can be loaded? | | 1 |
| what is call level interface? | | 1 |
| What are the different types of modifiers? | | 1 |
| When you will get error like ?No suitable driver?? | | 1 |
| |
| For more JDBC Interview Questions Click Here |