my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Why String is a final class..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why String is a final class..?" Watch "Why String is a final class..?" New topic
Author

Why String is a final class..?

lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
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

Joined: Jul 26, 2007
Posts: 10425
    
    8

SearchFirst
This question has been discussed quite some times in the past.

Hint: Java treats Strings in a special way.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
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
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10425
    
    8

http://www.google.co.in/search?sourceid=chrome&ie=UTF-8&q=site:coderanch.com+why+string+final
lokesh pattajoshi
Ranch Hand

Joined: Jul 29, 2009
Posts: 130
Maneesh thanks a lot for your kind help..
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10425
    
    8

You are welcome
 
GeeCON Prague 2014
 
subject: Why String is a final class..?