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
What is a values collection view ?
How to create a base64 decoder in java8?
Does java allow overriding static methods ?
Is finalize() similar to a destructor?
Difference between operator overloading and function overloading
What is the maximum size of hashmap in java?
Which variables are stored in heap?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is the locale class in java programming?
What is merge sort in java?
What are the kinds of polymorphism?
Can we declare an array without size in java?
Which methods are used during serialization and deserialization process?
Can we inherit inner class?
What is the symbol for line break?