aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is there a easy way for remeber those rules about reference casting? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Is there a easy way for remeber those rules about reference casting?" Watch "Is there a easy way for remeber those rules about reference casting?" New topic
Author

Is there a easy way for remeber those rules about reference casting?

Keen Chen
Ranch Hand

Joined: Nov 12, 2002
Posts: 47
Hi, ALL:
Rules in reference casting,
between such as
final or not-final object, interface, primitive array, reference array.........

and permutation and combination...
so many..
Who can tell me a easy to remember?...
Thx in advance.


SCJP 1.4 100% @ Peking, China <br />~~~~~~~~~~~~~~~~~~~~~<br />但使龙城飞将在, 不教胡马度阴山!
Albert Lee
Greenhorn

Joined: Aug 04, 2002
Posts: 18
You can upcast implicitly,but you must downcast explicitly.that's the rule.


Everyday create your history.
Keen Chen
Ranch Hand

Joined: Nov 12, 2002
Posts: 47
Thx Lee.
but i believe it's not so simple
Michael Taupitz
Greenhorn

Joined: Nov 26, 2002
Posts: 11
It sounds simple, but is often hard to find out.


SCJP 1.4, OCUPF (OMG Certified UML Professional Fundamental), SCEA - I
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is there a easy way for remeber those rules about reference casting?