Chapter 14 Flashcards

1
Q

What is JDBC

A

Java database connectivity provides standard library for accessing relational databases. Its a standardize way to connect with database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the package for JDBC

A

java.sql

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is DSN

A

Data source name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is UDSN

A

User data source name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is SDSN

A

System data source name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are basic steps for using JDBC

A
1- Import required packages
2- Load driver
3- Define connection URL
4- Establish connection
5- Create a statement object
6- Execute query or DML
7- Process results
8- Close connection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is ODBC

A

open database connectivity is an open standard API for accessing a database by Microsoft.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is JDBC ODBC bridge

A

Using them together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Does result set have getter method

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does opened database connection treat as garbage collection

A

No. We should close them by ourselves

How well did you know this?
1
Not at all
2
3
4
5
Perfectly