Java Operators in Hindi

Java Operators In Hindi – Operators In Java

Java

Java Operators In HindiOperators 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

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.

OperatorNameExampleResult
+Additionx + ySum of x and y
Subtractionx – yDifference of x and y
*Multiplicationx * yProduct of x and y
/Divisionx / yQuotient of x and y
%Modulusx % yRemainder 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

AssignmentSame as…Description
x = yx = yThe left operand gets set to the value of the expression on the right
x += yx = x + yAddition
x -= yx = x – ySubtraction
x *= yx = x * yMultiplication
x /= yx = x / yDivision
x %= yx = x % yModulus

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 ).

OperatorNameExample
==Equal tox == y
!=Not equalx != y
>Greater thanx > y
<Less thanx < y
>=Greater than or equal tox >= y
<=Less than or equal tox <= 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 |

OperatorNameDescription
++xPre-incrementIncrements x by one, then returns x
x++Post-incrementReturns x, then increments x by one
–xPre-decrementDecrements x by one, then returns x
x–Post-decrementReturns 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 |

OperatorNameExampleResult
andAndx and yTrue if both x and y are true
orOrx or yTrue if either x or y is true
xorXorx xor yTrue if either x or y is true, but not both
&&Andx && yTrue if both x and y are true
||Orx || yTrue if either x or y is true
!Not!xTrue 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 |

Leave a Reply

Your email address will not be published. Required fields are marked *