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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does remove work in java?

907


Can we nested try statements in java?

1043


What do you mean by ternary operator in java?

961


What does split function do in java?

966


What are "class access modifiers" in Java?

1053


Why multiple inheritance is not supported by java?

928


What all methods are used to prevent thread execution ?

963


What is the default size of arraylist in java?

1010


What is complexity in java?

963


What is the null?

952


Why is java not 100% pure oops?

1079


Explain the access modifiers for a class, method and variables?

1092


Explain differences between collection api and stream api?

1088


How can an object be unreferenced?

979


What is unmodifiable collection in java?

860