Java Tutorials- Type Conversion in Java (Part 1)

Pubblicato il: 18 agosto 2014
sul canale di: 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  


In questa pagina del sito puoi guardare il video online Java Tutorials- Type Conversion in Java (Part 1) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java Dukes 18 agosto 2014, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,173 volte e gli è piaciuto 7 spettatori. Buona visione!