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

Every class extends object but why it is not possible for
every object to invoke clone() method. ideally protected
methods should be accessible from sub classes. isn't it?

Answer Posted / surendrababu koppula

clone() method must be called on only cloneable objects so sub class must implement Cloneable marker interface

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if a constructor is declared private?

1027


What is the final access modifier in java?

1074


How much is a java license?

918


how are methods defined?

1046


Is vector thread safe in java?

1043


What are new features introduced with java 8 ?

984


What is a singleton in genetics?

1055


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

945


What are the new features in java 8? Explain

946


What is the concatenation operator in java?

1147


In Java list the methods that can be overridden?

999


What is double in java?

976


What is an immutable class? How to create an immutable class?

1056


Define linked list and its features with signature?

985


What is class forname?

1014