Java Tutorials- Type Conversion in Java (Part 1)

Publié le: 18 août 2014
sur la chaîne: 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  


Sur cette page du site, vous pouvez voir la vidéo en ligne Java Tutorials- Type Conversion in Java (Part 1) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java Dukes 18 août 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,173 fois et il a aimé 7 téléspectateurs. Bon visionnage!