Java Tutorials- Type Conversion in Java (Part 1)

Published: 18 August 2014
on channel: Java Dukes
2,173
7

Java Dukes-
   / javadukes  

In this video you will learn about the type conversions that can be performed in Java. In java the variables do not change their data type on their own. Java contains 8 data types . These 8 data types are arranged in decreasing order of their size. the table which contains all the data types of java in decreasing order of their size is termed as precedence order table.

The precedence table is as follows-
1. double
2. float
3. long
4. int
5. char
6. short
7. byte

although character and short data type is of same size but character data type has given a higher priority then short data type. Boolean data type holds the 8 place in this table but we don not write it because it is used to store the result only and its size is not precisely defined.

Java permits three types of type conversions in java
1. Widening conversion
2. Narrowing Conversion
3. Automatic Type Conversion

Widening conversion ,In this type of conversion a variable having lower data type is imported into variable having higher data type. this video will describe the widening conversion in detail.

Java Dukes -
   / javadukes  


On this page of the site you can watch the video online Java Tutorials- Type Conversion in Java (Part 1) with a duration of hours minute second in good quality, which was uploaded by the user Java Dukes 18 August 2014, share the link with friends and acquaintances, this video has already been watched 2,173 times on youtube and it was liked by 7 viewers. Enjoy your viewing!