JDBC, Java Server Pages, and MySQL Questions and Answers
The JDBC, Java Server Pages, and MySQL questions with answers topic is ideal for students preparing for software development roles and technical interviews. This section focuses on programming questions and answers that cover database connectivity using JDBC, server-side scripting with JSP, and SQL query handling with MySQL. Commonly asked in TCS, Wipro, Infosys, and Accenture placements, these questions test your understanding of database-driven Java applications. Practicing these problems enhances your skills for programming interview questions with answers and boosts your placement readiness.
JDBC, Java Server Pages, and MySQL
Showing 10 of
20 questions
11. Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are running on the same machine?
- Type 1 only
- Type 2 only
- Both Type 3 and Type 4
- All of Type 1, Type 2, Type 3 and Type 4
12. What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?
- VBScript only
- Jscript only
- Java only
- All of the above are supported
13. What servlet processor was developed by Apache Foundation and Sun?
- Apache Tomcat
- Apache Web server
- Sun servlet processor
- None of the above is correct.
14. What is bytecode?
- Machine-specific code
- Java code
- Machine-independent code
- None of the above is correct.
15. What is invoked via HTTP on the Web server computer when it responds to requests from a user's Web browser?
- A Java application
- A Java applet
- A Java servlet
- None of the above is correct.
16. Which JDBC driver Type(s) is(are) the JDBC-ODBC bridge?
- Type 1
- Type 2
- Type 3
- Type 4
17. How many copies of a JSP page can be in memory at a time?
- One
- Two
- Three
- Unlimited
18. Which JDBC driver Types are for use over communications networks?
- Type 3 only
- Type 4 only
- Both Type 3 and Type 4
- Neither Type 3 nor Type 4
19. JDBC stands for:
- Java Database Connectivity
- Java Database Components
- Java Database Control
- None of the above is correct.
20. JDBC stands for:
- Java Database Connectivity
- Java Database Components
- Java Database Control
- None of the above is correct.