197k views
3 votes
What output is produced by this Java statement? System.out.print(5%4+9/2);

User Shevan
by
4.8k points

2 Answers

4 votes

Answer:5.5

Step-by-step explanation:

5%4+9/2

1+9/2

1+4.5

5.5

User Marius Schulz
by
5.2k points
4 votes

Answer:

5

Step-by-step explanation:

I put your statement in Browxy Online Compiler.

User Ralphael
by
4.6k points