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
Explanation:
-
30. pow () is associated with which class
- Math class
- Input stream class
- Object class
- None of above
Answer And Explanation
Answer: Option A
Explanation:
-
32. x=x+1 is equivalent to
- ++x
- x++
- x=x-1
- None of these
Answer And Explanation
Answer: Option B
Explanation:
-
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
Explanation:
-
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
Explanation:
-
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
Explanation: