Post

🌒 Eclipse Java IDE
🌒 Eclipse Java IDE@EclipseJavaIDE·
What will this output? Don't try it before answering ;)
🌒 Eclipse Java IDE tweet media
English
104
42
199
0
zhouquan
zhouquan@zhouqua66139304·
@EclipseJavaIDE Down casing double or float to int will lost their precision, so that equals (3 + 1) equals 4
English
0
0
4
0
srinivasdj
srinivasdj@SrinivasdjJava·
@EclipseJavaIDE we are down casting here so anything after decimal point is lost so answer is 4 (d= 3 and f=1 when down cast to integer).
English
0
0
3
0
Teilen