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

What is a values collection view ?

676


How to create a base64 decoder in java8?

549


Does java allow overriding static methods ?

619


Is finalize() similar to a destructor?

544


Difference between operator overloading and function overloading

601






What is the maximum size of hashmap in java?

523


Which variables are stored in heap?

533


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

749


What is the locale class in java programming?

524


What is merge sort in java?

573


What are the kinds of polymorphism?

603


Can we declare an array without size in java?

513


Which methods are used during serialization and deserialization process?

544


Can we inherit inner class?

515


What is the symbol for line break?

594