| 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
|
 |
 |
|
|
subject: Is there a easy way for remeber those rules about reference casting?
|
|
|