What is casting?

What is casting?

Rishu
Views: 1107 | Community Opinion: 1

Tags..  Casting  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Hulasat Said..

There are two types of casting, casting between primitive numeric types and casting between object
references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: