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 is sleep method?

619


What is the difference between length and size in java?

494


How many characters is 16 bytes?

531


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9201


Which class cannot be a subclass in java?

539






What happens if main method is not static?

489


Does string isempty check for null?

560


What is the different between get and post?

496


List out five keywords related to exception handling ?

596


Where are the card layouts used?

609


How many types of constructors are used in java?

534


When do I need to use reflection feature in java?

622


What happens to the Exception object after handling an exception?

1811


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

575


What is :: operator in java 8?

552