Automatic Type Conversion/Widening Concept In Java With Example | Hamid Tutorials |

preview_player
Показать описание
In this video you will learn about the concept of Widening or also known as Automatic Type Conversion in java language....

Widening take place when destination type is greater than source type.

After Watching this video you will learn Following :

1. Automatic Type Conversion in java
2. Widening Concept In Java
3. Widening conversion cases.

============================================
Widening conversion is allowed in the following cases:
============================================

1. byte can be converted to short, int, long, float, or double
2. Short can be converted to int, long, float, or double
3. char can be converted to int, long, float, or double
4. int can be converted to long, float, or double
5. long can be converted to float or double
6. float can be converted to double

====
Size:
====

Byte: 8 bits or 1 bytes Long: 64 bits or 8 bytes
Short: 16 bits or 2 bytes Float: 32 bits or 4 bytes
Int: 32 bits or 4 bytes double: 64 bits or 8 bytes

===============================
Thanks For Watching
===============================

===================================================
if you have any question or suggestion please comment below
===================================================

=====================
Like, Comment And Share
=====================

Stay with us for more videos

Thanks

=============
Hamid Tutorials
=============
Рекомендации по теме
welcome to shbcf.ru