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?
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
Discord : / discord
More Learning :
Java - https://bit.ly/3xleOA2
Python :- https://bit.ly/3H0DYHx
Django :- https://bit.ly/3awMaD8
Spring Boot :- https://bit.ly/3aucCgB
Spring Framework :- https://bit.ly/3GRfxwe
Servlet & JSP :- https://bit.ly/3mh5CGz
Hibernate Tutorial :- https://bit.ly/3NWAKah
Rest API | Web Service Tutorial :- https://bit.ly/38RJCiy
Git :- https://bit.ly/3NUHB3V
JavaScript :- https://bit.ly/3mkcFys
Kotlin :- https://bit.ly/3GR2DOG
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
http://www.telusko.com/contactus
На этой странице сайта вы можете посмотреть видео онлайн #2.5 Java Tutorial | Arithmetic Operators in Java длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Telusko 15 Январь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 99,388 раз и оно понравилось 905 зрителям. Приятного просмотра!