#2.5 Java Tutorial | Arithmetic Operators in Java

preview_player
Показать описание
We have different types of operators in Java:
1) Arithmetic :- ( +, -, *, / , %)
-Division operator will always give a quotient not the decimal part when the data type is int.
-You need to typecast it with the double to get the proper quotient with the decimal part.
-% will give the remainder.

Shorthand operators:- n+=1 ( n=n+1)
Increment Operators:
Pre Increment: ++n (first add and than save)
Post Increment: n++ (first save and than add)
Decrement Operators:
Pre decrement: --n (first subtract and than save)
Post decrement: n-- (first save and than subtract)

2) Bitwise
3) Relational
4) Logical

Comments:
The statements are not executed by the compiler and interpreter but are used to provide information or explanation about the variable, method, class, or any statement.
- Single-line comment (//)
- Multi-line comment( /*..*/)

In this video we will see :
- How to use operators?
- Types of Operators
- Examples of Arithmetic Operators
- Increment and Decrement Operators
- How to write comments?

More Learning :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

That increment decrement part was so confusing. But the way this was explained. Damn, crystal clear. I wish they taught like this in school with comprehensible parallel methods.

operator
Автор

Sir you are the best teacher in programming for Java...

kartikkathuria
Автор

We don't have bitwise operators details in this video 🤔

rohinimane
Автор

@Telusko Good video. Thanks for the detailed explanation sir. But Bitwise, relational and logical operators tutorial is missing. Please add it. Thanks in advance

SachinKoppar
Автор

Post and pre increment became so use to remember after seeing thisss... Thankss bhaiya

anaghaanagha
Автор

Cant find the video for bitwise relational and logical

sunilsuth
Автор

U told we will see bitwise operator in next video na? Is it not uploaded yet or what? I can't find it

er.jayeshpardeshi
Автор

Loving your videos very much.. please answer..
difference between (String[] args) & (String args[]) or which of is true?

amitkumarverma_com
Автор

good video sir keep it up as much as possible.

asifnawaz-lkuu
Автор

excuse me when you are writing syso automatically option pop out in ur idk but the same is not happening to me.I need to write the whole thing to print.can anyone help how to do that

arpitaingermany
Автор

Hello sir, can we add two double or flot values without using operator ?

sagarpatil
Автор

Chapter 2 is incomplete... Please make videos for remaining operators.

relatable
Автор

Hello Sir,
Can u make videos on spring and Actually i want to learn these framework

omi
Автор

what the use of using atomic variables in java???

syedwaseemahmed
Автор

You are saying persentage (%) as mod, in the whole video. Plz correct it

tanmeetsingh