Answer Posted / vijayakumar chinnasamy
Casting means converting values from one data type to
other data type.For example to convert the int values to
float type vlaues.
Types of casting:
1. Downcasting -source is larger than destination type
2. upcasting - Source is smaller than destination type.
casting can be applicable to both primitive type and Object
type.
primitive type - convert numeral to floating point and vice
versa.
Object type - converting from subclass to super class or
vice versa.
superClassObj = subClassObj;
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What sorting algorithm does javascript use?
What are assembly attributes?
Are variables stored in ram?
What is the difference between compiler and jvm?
Explain treeset?
If a class is declared without any access modifiers, where can the class be accessed?
Can a lock be acquired on a class in java programming?
What does it mean to be immutable?
What is size of int in java?
What do you understand by the term singleton?
Is minecraft java edition free?
What 5 doubled?
What is method in java with example?
What are bind parameters?
what is anonymous class in java?