Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 ?    50 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

What is a parameter in java?

0 Answers  


What about instanceof operator in java?

0 Answers  


What environment variables do I need to set on my machine in order to be able to run java programs?

0 Answers  


How to call static method?

4 Answers   Epoch,


what is dynamic method dispatch ?

27 Answers   Fidelity, MUET, SDSF,


State two differences between C and Java.

0 Answers   Syntel, Visa,


what questions are been asked ??? for interview in apti

0 Answers  


What are the access modifiers available in java?

0 Answers  


Can an object subclass another object?

0 Answers  


Can we overload final method in java?

0 Answers  


Why can't you declare a class as protected?

0 Answers  


In Java, what are this() and super(), and where are you required to use them?

2 Answers  


Categories