Advertisement

Java Multithreading, JDBC & GUI MCQs (15 Questions with Answers) | Exam Prep Guide

1. What is a thread in Java?





2. Which class is used to create a thread in Java?





3. Which method is used to start a thread?





4. What is the output of calling run() directly instead of start()?





5. Which keyword is used for synchronization in Java?





6. Which package is used for JDBC?





7. What does JDBC stand for?





8. Which method is used to execute a SQL query in JDBC?





9. Which class is used to establish a database connection?





10. Which database is commonly used with JDBC?





11. Which method is used to close a database connection?





12. Which package is used for Java Swing?





13. Which component is used to create a button in Swing?





14. Which Java GUI framework is more modern than Swing?





15. Which method is used to make a Swing frame visible?





Wait for 20 seconds...

Post a Comment

0 Comments