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


Please Help Members By Posting Answers For Below Questions

When do we use hashset over treeset?

533


Is java map thread safe?

493


What is a literal coding?

513


What are scriptlets?

598


What is user defined exception in Java?

613






What is a treeset class?

560


What do you understand by the term string pool?

565


According to java operator precedence, which operator is considered to be with highest precedence?

603


What makes a function well defined?

519


please send me hr interview questions in it industry

1665


What is thread pool in java with example?

543


What is the access scope of protected access specifier?

536


What do you mean by ternary operator in java?

558


What is the function of character?

524


What is the use of optional ?

568