Answers were Sorted based on User's Feedback
Answer / om
No, we can not extend the String class b'coz it's a final
if a class is final, it's not possible to perform
inheritance operation on that class
|Is This Answer Correct ?||47 Yes||4 No|
Answer / maurya
We can`t extends String class because java make it final
and thats why we say String in java are immutable.
class--->can not inharitted.
method-->can not overridden
variable->its valu can not change after once initialized.
|Is This Answer Correct ?||16 Yes||3 No|
Answer / shashi shaw
no we cant.becoz string ia a immutable class.
|Is This Answer Correct ?||6 Yes||16 No|
Can we force the garbage collection to run?
Can we change the scope of the overridden method in the subclass?
posted in online test
What is 'finally' method in Exceptions?
What is jar?
What is the difference between static class and normal class?
What is the final field modifier?
What is the purpose of the File class?
What is a class reference?
What are advantages and disadvantages of OOPs?
What is the difference between preemptive scheduling and time slicing?
What does java stand for?