This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Using instanceof to check types before downcasting to prevent ClassCastException.
You've completed the free preview. Subscribe to unlock every lesson in every course.