Java Programming - MCQ Practice Questions
Java interviews and campus tests lean heavily on object oriented behaviour rather than API recall. This set covers inheritance and polymorphism, interfaces and abstract classes, the collections framework, exception handling, multithreading, string handling, and JVM basics such as garbage collection. Output based questions are included because they expose the gaps that theory questions hide.
951 questions | 100% Free
In JDBC 2024-25, which data type mapping is incorrect for Java to SQL?
What is the correct way to handle resource management in JDBC with Java 7+?
Which JDBC feature allows monitoring of database metadata like table structure and column information?
A developer needs to execute the same SQL query multiple times with different parameters. Which JDBC feature should be used to optimize performance?
When using ResultSet in JDBC, which cursor type allows bidirectional movement through rows but does not reflect database changes?
In JDBC 2024-25, which exception is thrown when attempting to use a closed Connection object?