Notizen
Ohne Titel
Inhalt der Notizen (1)
Seite 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
Informationen
- Beschreibung
- Notiz am Ohne Titel, erstellt von Leah Spier am 21/07/2019.
- Erstellt von
- Leah Spier
- Aufrufe
- 0
- Bewertung