if i have one string class then how can you achive this
class functionality of this class?
Answer Posted / ganesh
MyString extends String{
}
This will give all the functionalites of String Object for
MyString
Above code is not working. because String is a final class.
Final class can't be extend.
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
How do you sing an Applet ?
Can a class extend 2 classes in java?
What is the meaning of 3 dots in java?
What does the three dot emoji mean?
Define jre i.e. Java runtime environment?
What is the use of default method in interface in java?
What is flag in java?
What is update method called?
What is the common usage of serialization?
Which of the following is not an isolation level in the JDBC
Can we cast any other type to boolean type with type casting?
What is jit and its use?
What is the difference between super class & sub class?
How do you execute a thread in java?
Why are variables important in research?