Answer Posted / om
No, we can not extend the String class b'coz it's a final
class...
if a class is final, it's not possible to perform
inheritance operation on that class
| Is This Answer Correct ? | 50 Yes | 4 No |
Post New Answer View All Answers
What does this mean java?
Can we inherit a class with private constructor?
What is an empty string in css?
I don’t want my class to be inherited by any other class. What should I do?
What do you understand by an io stream?
Can a static block throw exception?
Which methods are used during serialization and deserialization process?
How variables are stored in memory?
What are the advantages of defining packages in java?
Can we make constructors static?
when should you use stringbuilder class in a program?
Explain exception chaining in java?
What is an object in java and how is it created?
For class CFoo { }; what default methods will the compiler generate for you>?
What is an example of a boolean?