Computer Science, asked by RAHULSEN504, 1 year ago

what is the difference between arithmetical and logical operators in Java?

Answers

Answered by faizan18
36
Arithmetic operators +, -, *, /, and % perform addition, subtraction, multiplication, division, and modulo operations. Arithmetic operators can be applied on any numeric type: byte, short, int, long, float, or double. Java also provides unary plus (+) andunary minus (-) to make a numeric value positive or negative.

The concept of logical operators is simple. They allow a program to make a decision based on multiple conditions. Each operand is considered a condition that can be evaluated to a true or false value. Then the value of the conditions is used to determine the overall value of the op1 operator op2 or !op1 grouping.



RAHULSEN504: Thanks
faizan18: wlcm
Answered by vandanasingh23
15

Explanation:

this is correct answer

Attachments:
Similar questions