Font size
WorksheetsTalentNext Test Day-13-Core Java Topics
Total questions: 10
Worksheet time: 4mins
Which of the following statements are correct about PreparedStatement? Select all that apply.
PreparedStatement can accept different parameters at runtime in java JDBC.
PreparedStatement is used for executing a precompiled SQL statement in java JDBC.
PreparedStatement is used for executing a static SQL statement in java JDBC.
All the above.
Predict the output :
Red
Invalid color
Invalid color
Compilation fails due to syntax errors
Red
Which of the following classes extends HashMap and maintains the insertion order of the elements?
TreeMap
LinkedHashMap
SortedMap
None of the above
Which one of the following classes implements Set interface and maintains the insertion order of elements?
HashSet
TreeSet
LinkedHashSet
None of the above
Predict the output :
ArrayIndexOutOfBoundsException
null
0
1
Which one of the following access modifiers is used while creating Junit test methods?
private
protected
public
None
