Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

All OPERATORS in Java

Rating
-
Sold
-
Pages
6
Uploaded on
05-07-2023
Written in
2022/2023

Operators are special symbols that perform specific operations on one, two, or three operands, and then return a result. As we explore the operators of the Java programming language, it may be helpful for you to know ahead of time which operators have the highest precedence.

Show more Read less
Institution
Course

Content preview

Openatons în java
tell Cmpien bpenbnm Some opention
Oymbolá that
operator
Sum =-a t b expes6ion ex:- dif= ab

openant Subtract = a-b

Tpes of openatona t cb)
Tenney eg
1. Aotthmetic Openatoná (Btnaay /onany)
2: Relational Operaboss
3 Logical openatoná
4. Bitoiáe opendtoá (eit Manipul ation)
6 ASsignnment opertoná
Aaithmete Openatons
Bincny (a openands) Unay (sing la openand)
+t ’ l= ati (incement
- ’ A-B =l0-5 = 5
* > A*B - l0*5 =50 0 n o l a a a-1 (decrenan
/ ’ A/B= lo/5
% > A%B = |o %5 =0
(Modolo) =5%3 (calelatu Remonden)uc-aeve
3|-35 |1

impont Java. otil. *; s H a Si19) ssle
Pubie cla6s JavaBasicá $
Poblie statie void main (sting cgsc)2
int A= lo;
Int B= 5;
System-oub- pountln ("divie (a6):

,|Uhay Openatons
Poe Incement Poe Decement Post Ineement Post Decunent
++ Lt+

Resele
Seif L. Valve uác
4- Value change ivalue cha
aVae U[0I avalue chaige eavalue charge
value uáe
avalue váe
1
int a= 10;
int b
int b=tt;
t Lqxs) r a at1moteye
ati
Sy50(a) ’11
(a9x5syso(a)= 11 oay2
Syso (b)->11 SYSo(b) =1o

-uqtu


Logical openatons Final stat Sab
menta



AA (logical AND) ’ (3>2)&& (5 >0) ’ Towe T T T
F
T
(3<a) && (5>0) ’Faláe ) tiT
(3<2) &s (5<o) >Foláe F
) rlhieg aFe F
Ans sH
>!(stt twe)- Falssl
! (togjeal Nor) - !(st False) > Tawe

a) False
(stt 1) I| (sH
F
Ansst sHa
T
T F ’Tewe T


TFsT
Assignment Openaton F| F


Reational openato
(5)
Poorluo-oafye
t= A=A+10 ’ A+= 10
-=B=B-5 - B-=5 != not equal to (ineaualtby)
?*=A=A* lo >A*= 10 Lesá thn
B= B/5
%=’ A%=1o >A= A% 10
[A>- -> tsuegh
<= a)-B]

Written for

Course

Document information

Uploaded on
July 5, 2023
Number of pages
6
Written in
2022/2023
Type
Class notes
Professor(s)
Hank written notes
Contains
All classes

Subjects

$13.29
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
nilanjanabairagi

Get to know the seller

Seller avatar
nilanjanabairagi Hooghly Engineering and Technology College
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions