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 stored procedure. How do you create stored procedure ?
What is finally and finalize in java?
Write a program in java to establish a connection between client and server?
What is the difference between jdk, jre, and jvm?
What are the advantages of encapsulation in java?
Can we call the constructor of a class more than once for an object?
What are selection structures?
Why is it called boolean?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What are benefits of java?
How java enabled high performance?
What is difference between arraylist and list in java?
How do you sort arraylist in descending order?
Can we able to pass objects as an arguments in java?
What is meant by method?