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
Explain the Propertie sof class?
What does \ mean in regex?
What is the importance of static variable?
Why can't we make a class private in java?
What is the difference between inheritance and encapsulation?
What is singleton class in ruby?
Which are the two subclasses under exception class?
What is the difference between and ?
What is the use of arraylist in java?
Why arraylist is not synchronized in java example?
Does variable declaration allocate memory?
What is a arraylist in java?
What is console based application in java?
Does a class inherit the constructors of its superclass in java programming?
What are design patterns and please explain?