Question
a.
Private
b.
Public
c.
Default
d.
Default or Public
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which among the following can be used for outermost class access specifier in java?
Similar Questions
Discover Related MCQs
Q. We can reduce the visibility of inherited methods.
View solution
Q. If members of a super class are public, then________
View solution
Q. How many public class(s) (outermost) can be there in a java program?
View solution
Q. Which among the following for public specifier is false?
View solution
Q. A class has its default constructor defined as public. Class B inherits class A privately. The class:
View solution
Q. Which specifier can be used to inherit protected members as protected in subclass but public as public in subclass?
View solution
Q. Which among the following is true for public class?
View solution
Q. If a class doesn’t have public members, then________
View solution
Q. In multi-level inheritance(all public) , the public members of parent/superclass will ________
View solution
Q. Which specifier allows to secure the public members of base class in inherited classes?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!