Search Interview Questions
| 2778 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core java - Interview Questions and Answers for 'Kpmg' - 1 question(s) found - Order By Newest|
|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 basic interview question Mindtree HCL Technologies Wipro Tata Consultancy (TCS) Infosys KPMG Accenture basic   frequent|
|What is Generalization and Specialization in terms of casting ?|
|When do you get ClassCastException?|
|Difference between implicit and explicit type casting ?|
|What is the use of upcasting in Java ?|