if i have one string class then how can you achive this
class functionality of this class?

Answer Posted / n. bala subramanian

MyString extends String{
}

This will give all the functionalites of String Object for
MyString

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of passing this into a method instead of the current class object itself?

1427


Is there any sort function in java?

856


What is boolean strategy?

889


What is t type java?

827


Why is a singleton bad?

761


what are different ways in which a thread can enter the waiting state? : Java thread

726


What is subsequence of a string?

854


What is finalize() function in java?

764


Why method overriding is used?

787


What is the static method?

766


What is byte value?

758


Explain the difference between abstraction and encapsulation.

753


What is data member in java?

694


How hashset works internally in java?

806


Is 64bit faster than 32 bit?

823