iGET

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

Q.41Medium

In JDBC 2024-25, which data type mapping is incorrect for Java to SQL?

Q.42Medium

What is the correct way to handle resource management in JDBC with Java 7+?

Q.43Medium

Which JDBC feature allows monitoring of database metadata like table structure and column information?

Q.44Medium

A developer needs to execute the same SQL query multiple times with different parameters. Which JDBC feature should be used to optimize performance?

Q.45Medium

When using ResultSet in JDBC, which cursor type allows bidirectional movement through rows but does not reflect database changes?

Q.46Medium

In JDBC 2024-25, which exception is thrown when attempting to use a closed Connection object?