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 does three dots mean in java?

1070


What is the difference between static (class) method and instance method?

1038


What is defined as false sharing in the context of multithreading?

994


What is a generic code?

992


What are different types of references?

940


Which types of exceptions are caught at compile time?

986


What is the difference between call by reference and call by pointer?

924


Write a program to reverse array in place?

1022


Can we extend singleton class?

905


What is factor r?

920


What is a copy constructor in java?

1061


What is the static block?

1011


What are the classes of java?

931


What environment variables are required to be set on a machine in order to run Java programs?

1133


What is * argv?

1178