Get Answers to all your Questions

header-bg qa

What is the difference between % and / in java programming? Give example.

Answers (1)

best_answer

% is known as modus and gives the remainder when used E.g. 10%3 is 1 

/ is used for division and gives the quotient E.g. 10/5 is 2

Both are arithmetic operators.

Posted by

Deependra Verma

View full answer