Shared Tutorials

Tutorials Shared by the Internet Community
Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Basic Detail

How to type cast one class to another in Java

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
http://javarevisited.blogspot.com/2012/12/what-is-type-casting-in-java-class-interface-example.html

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.

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 35.29%  60
 Two starsTwo star  Vote LeftVote MiddleVote Right 9.41%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.35%  21
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.59%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 32.35%  55

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements