Home / Programming Questions / JAVA MCQs / Page 12

JAVA MCQs with answers Page - 12

Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which is the keyword used to inherit a class to another?

(A) Inherits
(B) extends
(C) implements
(D) import

R

Ram Sharma • 188.81K Points
Coach

Q. The use of final keyword with method definition

(A) Supports method overriding
(B) implements dynamic method dispatch
(C) Prevents method overriding
(D) none of these

R

Ram Sharma • 188.81K Points
Coach

Q. Identify the type of inheritance when two or more subclasses inherit the properties of a super class.

(A) Multiple inheritance
(B) Single inheritance
(C) Multilevel inheritance
(D) Hierarchical inheritance

R

Ram Sharma • 188.81K Points
Coach

Q. The keyword used inside a class to refer to its immediate super class is

(A) super
(B) parent
(C) base
(D) none of these

R

Ram Sharma • 188.81K Points
Coach

Q. Which of the following is true in the case of abstract class

(A) Abstract constructors cannot be created.
(B) Abstract classes can not be inherited.
(C) An abstract class contains only abstract methods.
(D) All of the above.

R

Ram Sharma • 188.81K Points
Coach

Q. Which of these keywords are used to define an abstract class?

(A) abst
(B) abstract
(C) Abstract
(D) abstract class

R

Ram Sharma • 188.81K Points
Coach

Q. If a class inheriting an abstract class does not define all of its function then it will be known as?

(A) abstract
(B) A simple class
(C) Static class
(D) None of the mentioned

R

Ram Sharma • 188.81K Points
Coach

Q. Which of these is not a correct statement?

(A) Every class containing abstract method must be declared abstract.
(B) Abstract class defines only the structure of the class not its implementation.
(C) Abstract class can be initiated by new operator
(D) Abstract class can be inherited.

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.