Advanced Java MCQs to Test Your Knowledge

10

A. remove()  B. deletebatch()  C. setbatch()  D. addbacth()

1. Identify the method of the JDBC process among the following options.

Check out the answer here!

A. Type 1 driver  B. Type 2 driver  C. Type 3 driver  D. Type 4 driver

2. Which driver is known as the thin driver in JDBC?

Check out the answer here!

A. Connection  B. Statement  C. ResultSet  D. Driver

3. Which is responsible for getting a connection to the database?

Check out the answer here!

4. Identify the method which is used to start a  server thread.

A. start thread()  B. run()  C. runthread()  D. start()

Check out the answer here!

5. Which tag is used to execute Java source code in JSP?

A. Expression tag  B. Scriptlet tag  C. Declaration tag  D. None of the above

Check out the answer here!

A. .sql  B. .ora  C. .hbm  D. .dbm

6. In which file database table configuration is stored?

Check out the answer here!

A. Thread  B. Process scheduler  C. Process  D. Thread scheduler

7. What decides the priority of the thread?

Check out the answer here!

A. HTTP  B. TCP/IP  C. TCP  D. UDP

8. Identify among the following which follows the connectionless service.

Check out the answer here!

A. True  B. False

9. JDBC is a Java API used to connect & execute queries to the database. True or False. 

Check out the answer here!

A. Compilation  B. Translation  C. Syntax  D. Both A and B

10. What is the difference between servlet and JSP?

Check out the answer here!

Are you  prepared to assess your knowledge of Java Programming?

Demonstrate your expertise by taking our quiz. Simply click on the "Try it now" button to commence. Best of luck!

Improve your Java Programming Skills with Scaler!

Sign up for Scaler's free masterclasses and events to learn about the latest trends in the IT industry and become a pro.  Don't hesitate any longer, register today!