Java
How can a ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How can a class inheritance be prohibited (top-level classes are considered)?
Add the abstract modifier
Add the final modifier
Add the private modifier
Do not define a constructor
Declare all the class constructors as private
Inheritance can not be prohibited
Explanation
Get an explanation when it's available:
Subscribe
constructors
final keyword
inheritance
public, private, protected
1
(1)
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What will be the result of the following code compilation and execution? ...
Which line will the first compilation error occur in? p...
What will be the following program's output? package tu...
Is it possible to inherit from the class java.lang.String?...
Which of the following statements are true?...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment