164k views
20 votes
What is the numeric value of 19%(2+3) as evulated by Java

User Jameem
by
7.6k points

1 Answer

9 votes

Answer:

4

Step-by-step explanation:

java does parenthesis first then mod so it will do 2+3 which is 5 then 19 mod 5 which is 4(5 goes in evenly 3 times for a total of 15. Mod is the remainder number meaning that 19-15 = 4).

User Oxuser
by
7.0k points