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

How to find the index of the largest number in an arraylist java?

0 Answers  


What is a J2EE component? List out all the component?

2 Answers   Adobe,


how to print a numbers from 1 to 100 with out using control structures?

4 Answers   IBM,


Can we use string in the switch case?

0 Answers  


How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size

6 Answers   Accenture,


How to run a JAR file through command prompt?

0 Answers  


what is deadlock? : Java thread

0 Answers  


Tell me the latest versions in java related areas?

0 Answers  


What is design pattern and there types?

2 Answers   Cap Gemini,


Is java jre still free?

0 Answers  


Give example to differentiate between call by value and call by reference.

0 Answers   TCS,


This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?

3 Answers  


Categories