Java Objective Questions Answers -Chapter 1
-
1. Which class cannot be subclassed (or extended) in java?
- abstract class
- parent class
- Final class
- None of above
Answer And Explanation
Answer: Option C
-
4. Why we use array as a parameter of main method
- it is syntax
- Can store multiple values
- Both of above
- None of above
Answer And Explanation
Answer: Option B
-
5. Suspend thread can be revived by using
- start() method
- Suspend() method
- resume() method
- yield() method
Answer And Explanation
Answer: Option C
-
7. 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 And Explanation
Answer: Option C