How to type cast one class to another in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 7631
Total Votes: 160 votes
Category: JAVA/Core JAVA
Submitted on: 2013-12-22 01:02:28
Submitted By: Javin Paul
Description:Type casting in Java is used to cast one class or interface to another, if they are from same type hierarchy. Type casting is an important concept to understand, not just to avoid ClassCastException but also take full advantage of interfaces in Java, which is key to define flexible type hierarchy. More detail...