Answer Posted / javachi
Casting is nothing but data type conversion.
Up casting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc...
Down casting is vice versa of up casting, here we do type casting from larger value to lower value,
eg: double to byte, long to int etc
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is Hierarchy of exception?
What is the difference between reader/writer and inputstream/output stream?
Can private class be extended java?
What language is java written?
Why is whitespace important?
How do you write a scanner class in java?
Is java still necessary?
Difference between process and thread?
How does arraylist size increase in java?
What does int [] mean in java?
What is the difference between declaration and definition in java?
What is a java applet? What is an interface?
Can a class have multiple constructors?
Difference between throw and throws?
What does replaceall do in java?