Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
During mathematical calculations the Java compiler automatically modifies the data types of some variables so as to maintain homogeneity throughout the mathematical expression. Eg: int x=5 double y=12,5 double ans=x*y To solve this, the compiler first changes the datatype of x into double and then calculates the value in douublw
17th Nov 2016, 4:41 PM
Prarabdh Garg
Prarabdh Garg - avatar