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 the full form of jpeg?
What is keyset in java?
Is static a singleton?
What is the output of the below java program?
What is type safety in java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Can interface be private in java?
Why is stringbuffer called mutable?
What is early binding and late binding in java?
What are the differences between Java 1.0 and Java 2.0?
Why are parameters used in functions?
What is nullpointerexception?
Describe the term diamond problem.
What is the Difference between Final Class && Abstract Class?
What is singleton math?