Java _ basic syntax _ remainder operator %, java Operator
First, let's take a look at The official definition of The Java Language Specification:
The binary % operator is said to yield the remainder of its operands from an implied division; the
Tag: Take-up operator specificationFirst we look at the Java? Language specification in the official definition of it:The binary% operator is said to yield the remainder of its operands from an implied division; The left-hand operand is the dividend
The following is a detailed summary of the description and function of various operational symbols in C #first, []square brackets ([]) are used for arrays, indexers, and properties, and also for pointers.1, the array type is a type followed by
An operator is a particular symbol or expression used to examine, modify, or merge variables. For example, with the sum operator + you can sum two digits (such as let i = 1 + 2); a slightly more complex example has logic and operator && (e.g. if
[C ++ knowledge point Summary] OPERATOR & operator heavy load, knowledge point summary Operator[Operator]
When performing an operation, if we know which operation is performed first, if there are no parentheses, Arithmetic Operators, Relational
Modulo and remainder, modulo RemainderFor integer a and B, the modulo or remainder operations are all performed: 1. evaluate the integer quotient: c = a/B; 2. modulus or remainder: r = a-c * B. the modulo operation and the remainder operation are
"operator"at the time of the operation, if the closing parenthesis we know what to do first, then if there is no parentheses, arithmetic operators, relational operators, logical operators, bitwise operators, assignment operators, + + 、--operators,
The remainder operation ( a % b ) is the number of times that the calculation is b just good enough to be able a to fill, returning the part that is more than that.
Attention:The redundancy operation ( % ) is also called modulo operation in
! The operator performs a logical "Non" Operation on the expression.! = The operator compares the values of two expressions to see if they are equal.! = The operator compares the values of two expressions to see if they are not equal or the data
//Java operator \ relational operator \ logical operator \ assignment operator \ string connector \ Ternary operator/** What is a Java operator * * java operator? * +,-, *,/,%, + +,--* this Need to pay attention to the difference between a++ and ++a,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.