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

Which class is extended by all other classes?

Answer Posted / kishor kommula

Every class by default extends Object.

Object class consist of various methods such as
clone,toString,getClass,finalize,notify,wait etc..

If you want to print your own object to the console you
must override the toString method...

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you achieve singleton?

975


What is variable length arguments in java?

970


What is the difference between the ">>" and " >>>" operators in java?

983


What is the difference between C++ and Java and your preferences?

1111


If you do not want your class to be inherited by any other class. What would you do?

1003


Is java still necessary?

1064


What is better - 'bit-shift a value' or 'multiply by 2'?

1188


What do u mean by variable?

1049


Write an algorithm for quick sort?

1026


Can we override private constructor in java?

977


What are the differences between processes and threads?

1063


What is string manipulation?

1005


What are the advantages of defining packages in java?

984


What is hash in java?

967


Why string is immutable or final in java

1082