Back to Browse

24 - Operators Precedence & Parentheses in Java (Hindi/Urdu)

3.6K views
May 31, 2018
13:50

LIKE, SHARE & SUBSCRIBE In this video, we are going to discuss "Operators Precedence & Parentheses in Java". Precedence means a priority. Here priority matters when we are going to use many operators in a single Java statement. For example : a + b / c ; In the above statement, 3 operands " a, b, c" are getting manipulated by using Addition Operator (+), Division Operator (/). Here 2 operators are executing simultaneously, but how can we say that which one of the given operators is going to execute. Here the precedence of the given operators comes in handy. If we know which operator is going to execute first then we can calculate the output of the statement. That's why we must know the precedences or priorities of all the Java operators. In this video, I have made up a chart of all the Java operators precedence. Please study that chart and by using that chart, try to make some small programs. Then only you can understand the true concept of operator precedence. Parentheses ( ) is used raise the precedence of Java operators. If we place operators inside the parentheses pair then the priority of that operator is raised. Another use of parentheses is that by using it your code looks more formal and your code's readability gets better. Java Operators Introduction: https://youtu.be/4BuoIGzluTw Arithmetic & Assignment Operators (*, /, %, +, -, *=, /=, %=, +=, -= ) https://youtu.be/VB3ybwd1ShA Increment & Decrement Operators (++) (- -) https://youtu.be/xTO7BLa1KaQ Bitwise Operators (Part 1) (&, |, ^, ~, !, &=, |=, ^=) https://youtu.be/m80weLlzzzc Bitwise Operators (Part 2) https://youtu.be/Bum3wUNvT40 Relational Operators https://youtu.be/y8AJp7VCw84 Boolean Logical Operators (&, |, ^, ~, !, &=, |=, ^=, ~=, !=, ==) https://youtu.be/q2jFEO2Yuyk Short Circuit Logical Operators (&&) (||) https://youtu.be/t4P9zvsm40I Ternary Operator (?:) https://youtu.be/mx5_0fL0CT8 Thanks for watching & stay tuned. Like us on Facebook - https://goo.gl/y7oxYc Follow us on Twitter - https://goo.gl/UKmTfn

Download

0 formats

No download links available.

24 - Operators Precedence & Parentheses in Java (Hindi/Urdu) | NatokHD