Post

@EclipseJavaIDE Down casing double or float to int will lost their precision, so that equals (3 + 1) equals 4
English

@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

@EclipseJavaIDE Type casting to int gives output of 4.
English

@EclipseJavaIDE @java It shouldn't compile because of casting double and float to int
English




























