Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

why clone() is protected in Object class?

purushottam krishna hegde

2003-07-18


Hi all,
two doubts
1)
i want to know the reason behind protected clone method in Object class
as we have to call super.clone() in our overriding method.
2)Where java stores the type identification of an object(Object being upcasted to super class) when Polymorphism
Occurs (by R T T I -Runtime type identification )
 
 
thanks in advance
 
purushottam hegde


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
©2008 junlu.com - Jax Systems, LLC, U.S.A.