Can we extend the String class?

Answer Posted / om

No, we can not extend the String class b'coz it's a final
class...
if a class is final, it's not possible to perform
inheritance operation on that class

Is This Answer Correct ?    50 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four versions of java?

522


What is a double?

565


how to deploy apache tomcat server to weblogic server in java

1571


What is the purpose of stub and skeleton?

520


Why bytecode is called bytecode?

558






Is char * a string?

517


What do you understand by the term polymorphism?

605


Can you explain the meaning of aggregation and composition

550


What is an escape character in java?

515


Why main function is static?

642


What is the difference between hashmap and hashtable in java?

540


How do you initialize an arraylist in java?

476


How many arguments can a method have java?

517


Who developed java?

540


How to compare strings in java?

478