Java
Is it poss ...
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
Is it possible to inherit from the class
java.lang.String
?
Yes
No
Explanation
No it isn't, because the String class is declared as final.
strings
final keyword
inheritance
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
What will the following code print: public class Funcs ...
What is the result of compiling and running the following code? ...
What will be the result when the following code is compiled and executed? ...
How can a class inheritance be prohibited (top-level classes are considered)?...
What will be printed out as a result of the following code execution / compilati...
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...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
What will be the result of the following program execution? ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment