Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Can we extend the String class?

Answers were Sorted based on User's Feedback



Can we extend the String class?..

Answer / 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 ?    47 Yes 4 No

Can we extend the String class?..

Answer / maurya

We can`t extends String class because java make it final
and thats why we say String in java are immutable.
final..
class--->can not inharitted.
method-->can not overridden
variable->its valu can not change after once initialized.

Is This Answer Correct ?    16 Yes 3 No

Can we extend the String class?..

Answer / shashi shaw

no we cant.becoz string ia a immutable class.

Is This Answer Correct ?    6 Yes 16 No

Post New Answer



More Core Java Interview Questions

Can we force the garbage collection to run?

0 Answers  


Can we change the scope of the overridden method in the subclass?

0 Answers  


posted in online test

1 Answers  


What is 'finally' method in Exceptions?

4 Answers  


What is jar?

0 Answers  






What is the difference between static class and normal class?

0 Answers  


What is the final field modifier?

0 Answers  


What is the purpose of the File class?

3 Answers  


What is a class reference?

0 Answers  


What are advantages and disadvantages of OOPs?

0 Answers   Amdocs,


What is the difference between preemptive scheduling and time slicing?

0 Answers  


What does java stand for?

0 Answers  






Categories