Java Objective Questions Answers -Chapter 1
-
29. After the compilation of the java source code, which file is created by the JVM
- .class
- .java
- .cdr
- .doc
Answer And Explanation
Answer: Option A
-
30. pow () is associated with which class
- Math class
- Input stream class
- Object class
- None of above
Answer And Explanation
Answer: Option A
-
33. If method have same name as class name and method don’t have any return type then it is known as
- Destructors
- Object
- Variable
- Constructor
Answer And Explanation
Answer: Option D
-
34. Methods that have same name, but different Parameter list and different definition known as
- Overriding
- Constructor
- Overloading
- none of these
Answer And Explanation
Answer: Option C
-
35. Inheritance means
- Sub class extends super class
- Sub class extends Base class
- Sub class create object of super class
- All of the above
Answer And Explanation
Answer: Option A