Automatic Type Promotion In Java Language | Hamid Tutorials |

Publié le: 30 juillet 2019
sur la chaîne: Hamid Tutorials
1,925
31

Video Topic: Automatic Type Promotion In Java Language

In this video you will learn about automatic type promotion in java language.


Hope you will learn from this video.


.........................................................................................................
If you have any question or suggestion please comment below
in comment section.
..................................


Code :
...............................................................

class Promote {
public static void main(String args[]) {
byte b = 40;
char c = 'b';
short s = 1045;
int i = 52460;
float f = 5.453f;
double d = 5.24368;
double result = (f * b) + (i / c) -(d * s);
System.out.println((f * b) + " + " + (i / c) + " -" + (d*s));
System.out.println("result = " + result);
}
}

.............................................................

Thanks for watching

=============
Hamid Tutorials
=============


Stay with us for more videos


Thanks


Sur cette page du site, vous pouvez voir la vidéo en ligne Automatic Type Promotion In Java Language | Hamid Tutorials | durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Hamid Tutorials 30 juillet 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,925 fois et il a aimé 31 téléspectateurs. Bon visionnage!