Ex2 Flashcards

1
Q

Interface in AWT used to handle action events

A

Action Listener

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

The method invoked when a button is clicked

A

ActionPerformed

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

JDBC

A

Java database connectivity

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

Purpose of Hashmap class

A

Map keys to values

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

Purpose of JFrame class

A

To create a window

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

Collection that doesn’t allow duplicates

A

Set

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

Method used to set the layout for the container

A

Set

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

Correct way to close connection in JDBC

A

conn.close()

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

Method used to execute SQL queries in JDBC

A

executeQuery()

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

A class with generic data types

A

Generic class

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

A class that allows duplicates

A

arrayList

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

What does the method add do in Swing or AWT?

A

Adds a component to a container

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