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 does I ++ mean?
Can we initialize the final blank variable?
What is the difference between choice and list?
What does main method?
What is a blocking method in Java?
How can we make string upper case or lower case?
What is substring 1 in java?
What is math exp in java?
Is java map thread safe?
How to create a fecelet view?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What does it mean that strings are immutable?
How do you remove duplicates from an array in java?
How do you override a method in java?
What is arraylist e?