Explain about automatic type conversion in java?



Explain about automatic type conversion in java?..

Answer / Chandan Kishore

Automatic Type Conversion, also known as Widening and Narrowing Primitive Conversions in Java, allows the compiler to convert values between different data types without an explicit cast. Widening conversions increase the size of a value (e.g., byte to int, char to int), while narrowing conversions decrease the size of a value (e.g., int to byte). The compiler performs automatic type conversion wherever necessary and automatically promotes or demotes values accordingly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can a function return a function?

1 Answers  


Does java vector allow null?

1 Answers  


What is java ceil?

1 Answers  


how to prepare for IT Officers Interview in Banks

1 Answers   TATA, Tata Steel Limited,


Explain differences between checked and unchecked exceptions in java?

1 Answers  


What is the need of transient variables in Java ?

1 Answers   MCN Solutions,


Break statement can be used as labels in java?

1 Answers  


How do you compare two objects?

1 Answers  


How do I get a substring?

1 Answers  


What are access specifiers available in java?

1 Answers  


What do you understand by the term polymorphism?

1 Answers  


Which class contains a method: cloneable or object?

1 Answers  


Categories