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

How many types of operators are there?

724


Which collection does not allow duplicates in java?

708


How many times finalize method will be invoked? Who invokes finalize() method in java?

785


How does arraylist work in java?

776


What is balanced tree in java?

715


What are the access modifiers in java?

798


How many types of array are there?

741


What is the importance of static variable?

795


What are the main uses of java?

752


Why are generics used?

728


What is main method?

771


What are 3 data types?

750


What is the importance of hashcode() and equals() methods?

790


Is int primitive data type?

741


What is a java string?

726