Java Operators In Hindi – Operators In Java in Hindi – Java Operators Ka Istemal Variable Ko operate Karne Ke Liye Kiya Jata Hain And Java Me Koi Types Ke Operators Hote Hain |
Also Read – Java Type Casting And Java Data Types
Java Operators In Hindi
Contents
Waise To Har Programming Language Main Operators Ka Istemal Kiya Hain. Or Programming Ki Tarah Ab Ham In Operators Ko Examples Ke Sath Understand karte Hain |
- Arithmetic operators
- Assignment operators
- Comparison operators
- Increment/Decrement operators
- Logical operators
- String operators
- Array operators
- Conditional assignment operators
Upper Diye Gaye Operators Ko Ek Ek Karke Understand Karte Hain |
Java Arithmetic operators in Hindi
Arithmetic Operators Ka Istemal numeric values Ko arithmetical operations Ke Sath Istemal Kiya Hain – such as addition, subtraction, multiplication etc.
Operator | Name | Example | Result |
---|---|---|---|
+ | Addition | x + y | Sum of x and y |
– | Subtraction | x – y | Difference of x and y |
* | Multiplication | x * y | Product of x and y |
/ | Division | x / y | Quotient of x and y |
% | Modulus | x % y | Remainder of x divided by y |
Example:
public class Myclass { public static void main(String[] args) { int x = 10; int y = 5; System.out.println(x+y); System.out.println(x-y); System.out.println(x*y); System.out.println(x/y); System.out.println(x%y); } }
Output:
15 5 50 2 0
Java Assignment operators in Hindi
Assignment Operators Ka Ham Variable Main Value Assign Karne Ke Liye Istemal Karte Hain |
Also Read – Java Variables
Assignment | Same as… | Description |
---|---|---|
x = y | x = y | The left operand gets set to the value of the expression on the right |
x += y | x = x + y | Addition |
x -= y | x = x – y | Subtraction |
x *= y | x = x * y | Multiplication |
x /= y | x = x / y | Division |
x %= y | x = x % y | Modulus |
Example:
public class Myclass { public static void main(String[] args) { int x = 10; // assignment operator = System.out.println(x); } }
Output:
10
Java Comparison operators in Hindi
Comparison Operators Ka Istemal Two Values Ko Compare Karne Ke Liye Kiya Jata Hain – ( Number, String ).
Operator | Name | Example |
---|---|---|
== | Equal to | x == y |
!= | Not equal | x != y |
> | Greater than | x > y |
< | Less than | x < y |
>= | Greater than or equal to | x >= y |
<= | Less than or equal to | x <= y |
Is Comparison Operators Ko Ham Next If Else If-else Part Main Dekhne Wale Hain |
Java Increment/Decrement operators in Hindi
Java increment operatos ka istemal variable ki value ko increment karne ke liye Istemal Kiya Jata Hain |
Java Decrement operatos ka istemal variable ki value ko Decrement karne ke liye Istemal Kiya Jata Hain |
Operator | Name | Description |
---|---|---|
++x | Pre-increment | Increments x by one, then returns x |
x++ | Post-increment | Returns x, then increments x by one |
–x | Pre-decrement | Decrements x by one, then returns x |
x– | Post-decrement | Returns x, then decrements x by one |
Example:
public class Myclass { public static void main(String[] args) { int x = 10; System.out.println(x); x++; System.out.println(x); ++x; System.out.println(x); --x; System.out.println(x); x--; System.out.println(x); } }
Output:
10 11 12 11 10
Java Logical Operators in Hindi
java Logical Operatos Ka Istemal Conditional Statements Ko Combine Karne Ke Liye Kiya Jata Hain |
Operator | Name | Example | Result |
---|---|---|---|
and | And | x and y | True if both x and y are true |
or | Or | x or y | True if either x or y is true |
xor | Xor | x xor y | True if either x or y is true, but not both |
&& | And | x && y | True if both x and y are true |
|| | Or | x || y | True if either x or y is true |
! | Not | !x | True if x is not true |
Is Logical Operators Ko Ham Next If Else If-else Part Main Dekhne Wale Hain |
Yadi Aapne HTML Full Course And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |
Friends Mujhe Umeed Hai Ki Aapko Operators in Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |