GoConqr has a new look! Let us know what you think.

Notes

Untitled

Leah Spier English 1 page

Content of the notes (1)

Page 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

Information

Description
Note on Untitled, created by Leah Spier on 21/07/2019.
Created by
Leah Spier
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?