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 is a parameter in a function?
Why is singleton not thread safe?
Give few examples of final classes defined in Java API?
What is the difference between a static and a non-static inner class in java programming?
What is lambda programming?
what is object slice?
Why string objects are immutable in java?
What are the benefits of operations?
What does string intern() method do?
Do you know why doesn't the java library use a randomized version of quicksort?
What are untrusted applets?
What is a constructor, constructor overloading in java?
Can we have a try block without catch block?
What is a method in java?
What class allows you to read objects directly from a stream in java programming?