Java Objective Questions Answers -Chapter 1
-
22. Package of drawstring() method is
- java.applet
- java.io
- javax.swing
- java.awt
Answer And Explanation
Answer: Option D
-
23. Which method executes only once
- start() method
- init() method
- stop() method
- destroy() method
Answer And Explanation
Answer: Option B
-
24. Object which can store group of other objects is called
- Collection object
- Java object
- Package
- Wrapper
Answer And Explanation
Answer: Option A
-
25. All collection classes are available in
- java.io package
- java.lang package
- java.awt package
- java.util package
Answer And Explanation
Answer: Option D
-
26. Thread class is available in
- java.io package
- java.lang package
- java.awt package
- java.util package
Answer And Explanation
Answer: Option B
-
28. JIT meaning
- java in time
- just in time
- join in time
- none of above
Answer And Explanation
Answer: Option B