Return to site

JAVA CERTIFICATION QUESTION: Addition, subtraction, multiplication, and division in Java

👉 What happens when you divide an int by an int? Let’s find out.

· java,ocp

Given the expression

var res = 54/5*5-4.0+4*8/10;

What is the result of this calculation?

A. 1.0

B. 1.36

C. 49.0

D. 53.0

E. 53.2

 

 

 

 

·ꓛ uoᴉʇdo sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ ·uoᴉsnʅɔuoꓛ