Types of Operators in Java with Examples ??? Arithmetic, Relational ?????? Logical
?????????????????? ?????????????????????, ??????????????? Java Programming ??????????????? ????????? ???????????? ?????????????????? ????????? ??????????????? ??????????????? ????????? ???????????? ??????????????????????????? (Variables) ??????????????? ???????????? ????????? ?????? ?????? ??????????????? ????????? ?????? ????????????????????? Java ????????? Operators ???????????? ?????????? (Operators in Java in Hindi).
????????????????????? ?????? ????????? ??????????????? ?????? ?????? ??????????????? ???????????? ??????????????? ???????????? ?????? ????????? ???????????? ????????????, ???????????? ?????? ???????????? ?????? ????????? ????????? (Operations) ?????? ???????????? ???????????? ????????? ???????????? ?????? ?????????????????? ?????? ???????????????, ???????????????, ?????? ??????????????? ???????????? ?????? ????????? ?????? ???????????? ????????? ????????? ???????????? ????????? ???????????? Java ????????? Operators ?????? ????????? ???????????? ???????????? ????????? ?????? ?????? ?????? ??????????????? ????????? ?????? ????????????????????? ?????? Java ????????? Operators ???????????? ?????????? ?????? ???????????? ???????????????????????? ???????????? ???????????????
What is Operator in Java in Hindi? - ?????????????????? ???????????? ???????
Operator ?????? ??????????????? **Symbol (???????????????)** ???????????? ?????? ?????? ??????????????????????????? ?????? ????????????????????? ?????? ?????????????????? ????????????????????? ???????????? ?????????
??????????????????:
int sum = 10 + 20;???????????? + ?????? ?????????????????? ?????? ?????? 10 ?????? 20 ?????? ????????? ????????? ?????????
Types of Operators in Java in Hindi - ???????????? ????????? ???????????????????????? ?????? ??????????????????
Java ????????? ?????? ????????? ?????? ???????????????????????? ???????????? ?????????, ??????????????? ?????? ?????????????????? ?????? ????????? ?????? 5 ???????????? ?????????????????????????????? ?????????:
- Arithmetic Operators (?????????????????? ??????????????? ?????? ?????????)
- Relational Operators (??????????????? ???????????? ?????? ?????????)
- Logical Operators (??????????????? ??????????????? ?????? ?????????)
- Assignment Operators (?????????????????? ???????????? ?????? ?????????)
- Unary Operators (??????????????? ?????? ??????????????? ?????? ?????????)
1. Arithmetic Operators (???????????? ????????????)
???????????? ???????????????????????? ??????????????????????????? ??????????????????????????? (Mathematical Calculations) ?????? ????????? ???????????? ?????????
| Operator | Description | Example |
| + (Addition) | ?????? ?????????????????? ?????? ??????????????? ?????? | 10 + 5 = 15 |
| - (Subtraction) | ??????????????? ?????? | 10 - 5 = 5 |
| * (Multiplication) | ???????????? ???????????? ?????? | 10 * 5 = 50 |
| / (Division) | ????????? ???????????? ?????? (Quotient) | 10 / 2 = 5 |
| % (Modulus) | ??????????????? (Remainder) ???????????? ?????? | 10 % 3 = 1 |
??????????????? ?????????: % (Modulus) ?????????????????? ???????????? ????????? ?????? ??????, ???????????? ????????? ??????????????? Even/Odd ???????????? ????????? ???????????? ?????? ????????? ???????????? ?????????
2. Relational Operators (??????????????? ????????????)
???????????? ???????????????????????? ?????? ????????????????????? ?????? ??????????????? (Comparison) ???????????? ?????? ????????? ???????????? ????????? ???????????? ???????????? ??????????????? true ?????? false ????????? ????????? ?????????
<(Less than): ???????????? ???????>(Greater than): ????????? ???????==(Equal to): ???????????? ??????????????? ???????!=(Not Equal to): ???????????? ??????????????? ???????????? ???????
Example: 10 > 5 ???????????? ???????????? true ???????????????
3. Logical Operators (??????????????? ????????????)
???????????? ???????????????????????? ?????? ?????? ?????????????????? ???????????????????????? ?????? ????????? ???????????? ?????? ????????? ???????????? ?????????
&&(AND): ?????? ??????????????? ???????????????????????? ????????? ?????????, ????????? true ???????????????||(OR): ?????? ????????? ?????? ?????? ?????????????????? ????????? ??????, ?????? true ???????????????!(NOT): ?????? ?????????????????? ?????? ??????????????? ?????? ???????????? ?????? (true ?????? false)???
4. Assignment Operators (=)
???????????? ???????????????????????? ????????????????????? ?????? ?????????????????? ???????????? (Assign) ?????? ????????? ???????????? ?????????
int x = 10; (???????????? = ??????????????????????????? ?????????????????? ??????)
?????? ????????????????????? ?????? ????????? ?????? ???????????? ?????????:
x += 5; ?????? ???????????? ?????? x = x + 5;
5. Unary Operators (++, --)
?????? ???????????????????????? ???????????? ?????? ????????????????????? ?????? ????????? ???????????? ????????????
++(Increment): ?????????????????? ?????? 1 ?????? ????????? ???????????? ?????????--(Decrement): ?????????????????? ?????? 1 ?????? ????????? ???????????? ?????????
Example:
int a = 10;a++; (?????? a ?????? ?????????????????? 11 ?????? ?????? ??????)
Conclusion - ????????????????????????
???????????? ?????????????????? ?????? ?????? ?????? ??????????????? ?????? ???????????? Types of Operators in Java in Hindi ?????? ??????????????? ?????? ????????? ???????????? ???????????????
????????? ???????????? ??????????????????????????? ??????????????? ?????? ?????? ????????? ????????? ??????????????? ??????, ?????? ???????????????????????? ?????? ???????????????????????? ?????? ???????????? ?????? ?????????????????? ???????????? ??????????????? ????????? ?????? ?????? ???????????????????????? ?????? ????????? ???????????? "Decision Making" (if-else) ????????????????????????
FAQs
Q1. = ?????? == ????????? ???????????? ???????????? ???????
Ans: = (Assignment) ?????????????????? ???????????? ?????? ????????? ????????? ???????????? ??????, ???????????? == (Equal to) ??????????????? ???????????? ?????? ????????? ????????? ???????????? ?????? ?????? ????????????????????? ??????????????? ????????? ?????? ???????????????
Q2. 10/3 ?????? ?????????????????? Java ????????? ???????????? ?????????????
Ans: ????????? ??????????????? int ?????????, ?????? ?????????????????? 3 ???????????? (??????????????? ????????? ???????????? ???????????? ??????)??? ????????? ????????? ?????????????????? ??????????????? ?????? double ????????? ???????????????
Q3. && ?????? || ????????? ???????????? ???????????? ???????
Ans: && (AND) ????????? ?????? ????????? ???????????? ???????????????, || (OR) ????????? ????????? ?????? ????????? ???????????? ???????????? ?????????