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?
Advertisement
What is type erasure in Java Generics?
Which statement about wildcard generics (?) is correct?
What will happen when you try to create an array of generics?
List<String>[] array = new List<String>[10];
Consider the code:
List<? extends Number> list = new ArrayList<>();
list.add(5); // Will this compile?
Which of the following represents a bounded type parameter?
What is the difference between List<?> and List<Object>?
Consider this generic interface:
interface Comparable<T> { int compareTo(T o); }
Which class definition correctly implements this?
What will be the output?
List<Integer> list = new ArrayList<>();
list.add(10);
Object obj = list.get(0);
System.out.println(obj instanceof Integer);
Which of these declarations would NOT cause a compilation warning or error?
In the declaration 'List<? extends Number> list', what types can be added to this list at runtime?
Which statement correctly uses the lower-bounded wildcard in generics?
Which generic declaration would allow storing both String and Integer in the same collection?
What does the PECS principle stand for in generics context?
In a generic class 'class Box<T extends Comparable<T>>', what constraint is placed on T?
Which generic wildcard usage is INCORRECT?