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

Does string isempty check for null?

1023


What is broken and continue statement?

998


what is the difference between Object Based Language and Object Oriented Language?

1033


What do negative exponents mean?

1045


What is class and its types?

1039


What is finalize() function in java?

1014


What does next mean in java?

969


What do you understand by looping in java? Explain the different types of loops.

1050


What is the purpose of a volatile variable?

1058


What is parameters example?

1030


What is contractor means and methods?

997


what do you mean by stream pipelining in java 8? Explain

1027


What are the restriction imposed on a static method or a static block of code?

1059


Can you override private or static method in java?

976


What is meant by anonymous class?

1025