Java Interview questions - Part 4
Latest answer: The Bootstrap class loader loads
key Java classes. Bootstrap class loader loads the basic classes
from Java library, like java.*, javax.*. This is the root in the
class loader hierarchy.................. Read
Answer
Latest answer:
The JDBC API defines interfaces and classes for making
database connections. Using JDBC, you can send
SQL................. Read answer
Latest answer:
Java application calls the JDBC library that loads a
driver which talks to the database.................... Read
answer
Latest answer: ResultSet provides
access to the rows of table. A ResultSet maintains a cursor pointing
to its current row of data.................. Read
answer
Latest answer:
JDBC-ODBC bridge plus ODBC driver, also called Type
1, Native-API, partly Java driver, also called Type
2................ Read answer
Latest answer:
Isolation ensures one transaction does not interfere
with another. The isolation helps when there are concurrent
transactions............... Read answer
Latest answer:
TRANSACTION_NONE, TRANSACTION_READ_UNCOMMITED,
TRANSACTION_READ_COMMITTED.......... Read answer
Latest answer:
A connection is in auto-commit mode by default which
means every SQL statement is treated as a transaction and will be
automatically committed after it is
executed................... Read answer
Latest answer:
The JDBC Driver provided by the JDBC API, is a
vendor-specific implementations of the abstract classes. The driver
is used to connect to the database.............. Read
answer
Latest answer:
Load JDBC drivers, Register the driver with
DriverManager class........... Read
answer
Latest answer:
A Connection pooling is a technique of reusing
active database connections instead of creating a new connection
with every request............ Read answer
Latest answer:
Create an instance of a JDBC driver, Register a
driver, Specify a database............. Read answer
Latest answer:
Exceptions are errors that occur at runtime and
disrupt the normal flow of execution of instructions in a
program............... Read answer
Latest answer: Class
loader finds and loads the class at runtime. Java class loader can
load classes from across network or from other sources like HTTP,
FTP etc................ Read answer
Latest answer:
TreeSet class is used to store large amount of data
and uses tree for storage................ Read
answer
<<Previous
Next>>
|