Java Objective Questions Answers -Chapter 1
-
36. Which type of inheritance is not supported by java
- Single
- Multiple
- Mulilevel
- Hirarchical
Answer And Explanation
Answer: Option B
Explanation:
-
37. String is the predefined
- Method
- Class
- Variable
- Object
Answer And Explanation
Answer: Option B
Explanation:
-
38. Super is the predefined
- Keyword
- Method
- Keyword and Method
- None of above
Answer And Explanation
Answer: Option C
Explanation:
-
39. Execution of the program is always begins with
- Main method
- class contain main method
- parent class
- default package
Answer And Explanation
Answer: Option A
Explanation:
-
40. All methods of interface are public and abstract
- True
- False
Answer And Explanation
Answer: Option A
Explanation:
-
41. In java, gc() method is available in which package
- java.lang package
- java.util package
- java.awt package
- java.io package
Answer And Explanation
Answer: Option A
Explanation:
-
42. JAR file contains the compressed version of
- .java file
- .class file
- .jsp file
- None of above
Answer And Explanation
Answer: Option B
Explanation: