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


Please Help Members By Posting Answers For Below Questions

How do you sing an Applet ?

2253


Can a class extend 2 classes in java?

803


What is the meaning of 3 dots in java?

898


What does the three dot emoji mean?

833


Define jre i.e. Java runtime environment?

794


What is the use of default method in interface in java?

791


What is flag in java?

757


What is update method called?

901


What is the common usage of serialization?

830


Which of the following is not an isolation level in the JDBC

1904


Can we cast any other type to boolean type with type casting?

749


What is jit and its use?

796


What is the difference between super class & sub class?

823


How do you execute a thread in java?

732


Why are variables important in research?

759