Java Objective Questions Answers -Chapter 1
-
71. Why we use array as a parameter of main method
- it is syntax
- Can store multiple values
- Both of above
- None of above
Answer :
Option B
-
72. Which method is used to perform DML statements in
JDBC- execute()
- executeUpdate()
- executeQuery()
- None of above
Answer :
Option B
-
73. Which driver is called as thin-driver in JDBC
- Type-1 driver
- Type-2 driver
- Type-3 driver
- Type-4 driver
Answer :
Option D
-
74. Which collection class associates values witch keys, and orders the keys according to their natural order
- java.util.HashSet
- java.util.LinkedList
- java.util.TreeMap
- java.util.SortedSet
Answer :
Option C