Tuesday, November 29, 2011

What is upward and downward casting in Java?

In upward casting small datatype is casted in to big data type such as byte is casted as int type.but in downward casting the big data type is casted into small data type such as long is casted into int or byte.
Category:Java Interview Questions

No comments:

Post a Comment