R4RIN
MCQS
Java MCQ Quiz Hub
Classes ,Constructor ,Methods,Inheritance
Choose a topic to test your knowledge and improve your Java skills
1. Choose true for constructor ?
Constructor have a same name as the class
Constructor can use any access modifiers
Interface do not have a construct
All
2. How many basic types of inheritance are provided as OOP feature?
4
3
5
6
3. Java not supported?
multiple inheritance
Single inheritance
multiple level
All
4. Which of the following access specifies is used in a class definition by default?
Protected
Public
Private
Default
5. Which of the following keywords is used to control access to a class member?
Default
Break
Protected
Default
Submit