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

User Shevan
by
8.0k 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
8.0k points
4 votes

Answer:

5

Step-by-step explanation:

I put your statement in Browxy Online Compiler.

User Ralphael
by
8.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.