The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

java

Posted by s.v.Ramana on August 21, 2001 at 4:39 AM

>
> c'd you please give any examples ( from Java API ) which exhibits this kind of behaviour.In case of say a Vector , we do add our Class's reference and
> when we do a elementAt(i) it returns our class's refernce as an Object (upcast) and we are able to cast it back to our class.

> karthik






Replies:
  • java s.v.Ramana August 21, 2001 at 4:43 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us