Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. 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|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   data types   casting  type casting   basic interview question Asked in 8 Companies basic   frequent|
|What is Generalization and Specialization in terms of casting ?|
|Difference between implicit and explicit type casting ?|
|What is the use of upcasting in Java ?|
|What is TypeCasting ?|
|Can we do type casting in Typescript ?|