0% found this document useful (0 votes)
3 views10 pages

Operators in Java

The document provides an overview of operators in Java, which are symbols used for data manipulation in programming. It categorizes operators into various types, including arithmetic, relational, unary, shift, assignment, logical, ternary, and bitwise operators. The document emphasizes the importance of these operators in performing actions on data.

Uploaded by

Cogent infotech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views10 pages

Operators in Java

The document provides an overview of operators in Java, which are symbols used for data manipulation in programming. It categorizes operators into various types, including arithmetic, relational, unary, shift, assignment, logical, ternary, and bitwise operators. The document emphasizes the importance of these operators in performing actions on data.

Uploaded by

Cogent infotech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Operators

in Java

www.cogentinfo.com
2/10

Introduction
"In Java, operators are symbols that perform actions on
data, like doing math or making decisions in programs.
These are crucial for data manipulation in programs."

www.cogentinfo.com
3/10

In the example below, we use the + operator


to add together two values:

int x = 100 + 50;

www.cogentinfo.com
4/10

"Let’s explore the many types of operators in


Java:"

www.cogentinfo.com
5/10

Arithmetic Operator
*, /, %, +, -

Relational Operator
<, >, <=, >=, ==, !=

www.cogentinfo.com
7/10

Unary Operator
++, --, !

Shift Operator
<<, >>, >>>

www.cogentinfo.com
6/10

Assignment Operator
=, +=, -=, *=, /=, %=, &=, ^=, |=, <<=, >>=, >>>=

www.cogentinfo.com
9/10

Logical Operator
&&, ||

Ternary Operator
?, :

www.cogentinfo.com
8/10

Shift Operator
<<, >>, >>>

Bitwise Operator
&, ^, |

www.cogentinfo.com
10/10

There's more... stay tuned


and be ready to learn more
concepts of Java with

www.cogentinfo.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy