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
Can Exception handling we can handle multiple catch blocks?
Can we extend singleton class?
What is this () in java?
Explain the meaning of java applet.
What are the two types of streams offered by java 8?
Is 0 a real number?
Can we inherit inner class?
What is the maximum size of byte array in java?
Why string is called as immutable?
What are strings in physics?
What is the impact of declaring a method as final?
How do you identify if jvm is 32-bit or 64-bit from java program?
Explain a situation where finally block will not be executed?
How to perform bubble sort in java?
What is string example?