Ex2 Flashcards
1
Q
Interface in AWT used to handle action events
A
Action Listener
2
Q
The method invoked when a button is clicked
A
ActionPerformed
3
Q
JDBC
A
Java database connectivity
4
Q
Purpose of Hashmap class
A
Map keys to values
5
Q
Purpose of JFrame class
A
To create a window
6
Q
Collection that doesn’t allow duplicates
A
Set
7
Q
Method used to set the layout for the container
A
Set
8
Q
Correct way to close connection in JDBC
A
conn.close()
9
Q
Method used to execute SQL queries in JDBC
A
executeQuery()
10
Q
A class with generic data types
A
Generic class
11
Q
A class that allows duplicates
A
arrayList
12
Q
What does the method add do in Swing or AWT?
A
Adds a component to a container