+ 17

why is System.out.println(9f/4) // equals 2.25

why is the f neglected please help

19th Oct 2017, 8:26 AM
Okoye Kenneth Collins
Okoye Kenneth Collins - avatar
3 Antworten
19th Oct 2017, 9:22 AM
Shadow
Shadow - avatar
+ 16
thanks
19th Oct 2017, 10:43 AM
Okoye Kenneth Collins
Okoye Kenneth Collins - avatar
+ 2
if we perform any operation between two different data type then automatically result will be promoted to highest rang datatype.so output will be 2.25
22nd Oct 2017, 3:29 PM
Sikandar Singh
Sikandar Singh - avatar