• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why String is a final class..?

 
lokesh pattajoshi
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body hope every one is doing well.One thing is striking in my mind that is why String class is developed as final class..?if we are overriding its method than what will be the problem..?Kindly suggest.

Regards
Lokesh Kumar Pattajoshi
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SearchFirst
This question has been discussed quite some times in the past.

Hint: Java treats Strings in a special way.
 
lokesh pattajoshi
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh for your replay..I searched it but didn't get exact result if possible than can you kindly send me the link.

Regards
Lokesh
 
lokesh pattajoshi
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh thanks a lot for your kind help..
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic