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
Differentiate between a class and an object.
How define set in java?
how does multithreading take place on a computer with a single cpu? : Java thread
Is java 9 released?
What is the difference between static method and instance method in Java?
Why do we need data structure in java?
What is public static?
What is the use of singleton class?
when to use ArrayList and when to use HashMap in webApplication.
What is purpose of applet programming?
How do you override a method in java?
Why do I need to declare the type of a variable in java?
Is java call by reference?
What is tree node in java?
What is meant by 'Class access modifiers'?