Which of the following methods is used to establish a connection with the database in JDBC?

Online Quiz On Unit 3&4

Quiz
•
Computers
•
University
•
Medium
Rahul Badgujar
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
connect()
openConnection()
DriverManager.getConnection()
getConnection()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is NOT a type of JDBC driver?
Type-1 Driver
Type-2 Driver
Type-3 Driver
Type-5 Driver
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the executeQuery() method in JDBC do?
Executes SQL update commands like INSERT, UPDATE, or DELETE
Executes a SQL SELECT statement
Closes the connection to the database
Executes any SQL statement, including creating or dropping tables
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which interface is used to retrieve data from the database after executing a query?
Statement
ResultSet
Connection
PreparedStatement
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the RMI Registry?
It acts as a database for storing remote objects.
It manages the remote method invocations.
It allows clients to locate remote objects by name.
It is used to create remote objects.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does a stub represent in RMI?
It is an actual implementation of a remote object.
It acts as a proxy on the client side to forward requests to the remote object.
It manages the RMI Registry.
It stores the remote object on the server side.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used by the client to locate and obtain a reference to a remote object from the RMI Registry?
Naming.lookup()
Naming.rebind()
Registry.getReference()
Remote.lookup()
Create a free account and access millions of resources
Similar Resources on Quizizz
9 questions
Network Fundamentals-IOS Operating System Part 1

Quiz
•
9th Grade - University
10 questions
Cloud Storage

Quiz
•
8th Grade - University
15 questions
The OSI Model and Network Protocols Quiz

Quiz
•
University
10 questions
SD- RPC, RMI y MPI

Quiz
•
University
10 questions
Computer

Quiz
•
University
10 questions
Pop Quiz

Quiz
•
University
10 questions
V1 unit 3 and 4Quiz

Quiz
•
University
13 questions
Cisco 1, Module 8

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade