Answer Posted / maurya
We can`t extends String class because java make it final
and thats why we say String in java are immutable.
final..
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 |
Post New Answer View All Answers
Why does java not allow multiple public classes in a java file ?
What is constructor chaining and how is it achieved in java?
How to sort array of 0 and 1 in java?
What does this () mean in java?
Can I learn java in 3 months?
What is the this keyword?
How do you use compareto?
What is a pattern what is an anti pattern?
Can there be an abstract method without an abstract class?
Explain the features of java?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
How many ways can we create singleton class?
What is a jit compiler?
What is a generic data type?
What are annotations in java?