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
Is java call by reference?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What is the size of an array?
How do you insert a line break?
What is java and its types?
What does mean in regex?
What are wrapped classes in java programming?
What is an abstract class and what is it’s purpose?
What is the purpose of assert keyword used in jdk1.4.x?
Can java inner class be static?
Explain different ways of creating a thread?
What are the advantages and disadvantages of object cloning?
What is numeric data type?
What do you know about the garbage collector in java?
What is considered an anti pattern?