Prashant Kumar Rai

79%
Flag icon
Here are some basic rules to keep in mind when casting variables: Casting an object from a subclass to a superclass doesn't require an explicit cast. Casting an object from a superclass to a subclass requires an explicit cast. The compiler will not allow casts to unrelated types.
OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808 (Sybex Study Guide)
Rate this book
Clear rating
Open Preview