Apuntes
Sin título
Contenido del apunte (1)
Página 1
OPERATORS AND EXPRESSIONS
Operators in Java
Def: The special symbols used to perform some special operations on operands or variables are called operators.
Types of Operators:
Arithmetic
Increment/ Decrement
Logical
Conditional
Relational
Bitwise
Assignment
Others
ARITHMETIC OPERATORS
There are two types of arithmetic operators
(a) Unary
(b) Binary
UNARY OPERATORS
1. Plus
2. Minus
BINARY OPERATORS
1. Addition- The operator returns the addition or sum of values of the two operators
2. Subtraction- The operator subtracts the second operand or value from the first operand or value
3. Multiplication - The operator multiplies the values stored in the operands and returns the product
4. Division- The operator divides the first operand by the second operand and returns the quotient
5. Modulus - The operator returns the remainder after dividing the first operand by the second operand
Concatenation - The process of joining two string literals by a plus sign
ASCII CODES
American Standard Codes for Information Interchange
Información
- Descripción
- Apunte sobre Sin título, creado por Leah Spier el 21/07/2019.
- Creado por
- Leah Spier
- Visitas
- 0
- Valoración