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...

if i have one string class then how can you achive this
class functionality of this class?

Answer Posted / ganesh

MyString extends String{
}

This will give all the functionalites of String Object for
MyString

Above code is not working. because String is a final class.
Final class can't be extend.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a set contain duplicates?

952


What are sets in java?

950


What is immutability in java?

1091


Which is a valid identifier?

1211


How objects of a class are created if no constructor is defined in the class?

1072


What are the types of inner classes (non-static nested class) used in java?

1065


What are the types of collections in java?

1057


Can inner class final?

1094


What is a nested class?

1125


What is integer valueof?

1111


Explain inner classes ?

1129


Can private members of a base class are inheritable justify?

929


Can a abstract class be defined without any abstract methods?

1006


What is a singleton class in Java?

1069


Tell us something about different types of casting?

944