Posts

Showing posts with the label bitwise

Operators in java जावा में ऑपरेटर

In Java, operators are special symbols used to perform operations on variables and values. Java supports the following types of operators: जावा में, ऑपरेटर विशेष चिह्न होते हैं जो वेरिएबल्स और मानों पर संचालन (ऑपरेशन) करते हैं। जावा निम्न प्रकार के ऑपरेटरों का समर्थन करता है: 1️⃣ Arithmetic Operators (गणितीय ऑपरेटर) Used for basic mathematical operations. इनका उपयोग गणनाएँ करने के लिए किया जाता है। Operator Meaning Example + Addition a + b - Subtraction a - b * Multiplication a * b / Division a / b % Modulus a % b 🔸 Example: int a = 10, b = 3; System.out.println(a + b); // 13 System.out.println(a % b); // 1 2️⃣ Relational or Comparison Operators (तुलनात्मक ऑपरेटर) Used to compare two values. दो मानों की तुलना करने के लिए प्रयुक्त। Operator Meaning Example == Equal to a == b != Not equal to a != b > Greater than a > b < Less than a < b >= Greater than or equal a >= b <= Less than or...