Java Operators in Hindi : Its Types

आज के लेख में operators in java in hindi के बारे में जाानेगे. इस लेख में मुख्य रूप से निम्न टॉपिक कवर किये जायेगे.

  1. Operators in Java in hindi
  2. All Operators in java in hindi
  3.  Types of Operators in java in hindi
  4. Arthmetic Operators in java in hindi
  5. Logical Operators in java in hindi
  6. Increment & decrement Operators in java in hindi
  7. Bitwise Operators in java in hindi
  8. Special Operators in java in hindi
Operators in Java in hindi

Operators in Java in hindi

Operators एक symbols है जो किसी विशेष कार्य जैसे मैथमेटिकल और लॉजिकल operation को perform करता है.

Operator का उपयोग प्रोग्राम में data और variables को manipulate करने के किया जाता है. Operator में =, +, -, /और × जैसे symbols आते हैं.

Operator के द्वारा operand की value को manipulate किया जाता है. उदाहरण के लिए 2+4 = 6 , यहां पर 2 और 4 operand है और + को operator कहा जाता है.

Types of Operators in Java in hindi

ऑपरेटर कई प्रकार के होते हैं. जो अलग-अलग कार्य को perform करते हैं.

  1. Arithmetic Operators
  2. Relational Operators
  3. Logical Operations
  4. Assignment Operators
  5. Increment and Decrement Operators
  6. Conditional Operators
  7. Bitwise Operators
  8. Special Operators
अब एक एक operators को detail में पूरी जानकारी एवं तथ्यों को जानेगे.

1. Arithmetic Operators

Arithmetic operators वे operators होते है जो mathematics के बीजगणतीय expression को हल करता है. ये सभी प्रोग्रामिंग भाषा में एक सामान कार्य करते है.

Meaning Operator Using
Addition or unary plus + a+b
Substraction or unary plus - a-b
Multiplication × a×b
Division / a/b
Modulo division (remainder) % a%b

जावा में यह operator केवल numeric data type पर ही operate किया जाता है. unary minus operator, यह single operand को -1 से गुणा करता है. एक संख्या की माइनस sign change करने के लिए किया जाता है.

Arithmetic Operators are used

यदि a और b दो integer data type variables है जिसे a = 10 और b = 5 किया है तब,

a - b = 10 - 5 = 5
a + b = 10 + 5 = 15
a × b = 10 × 5 = 50
a / b = 10 / 5 = 2
a % b = 0 होगा.

Implementation of Arithmetic operator

class demoprogram{
   public static void main (string args[])
   {
     int a=10, b=5;
     System.out.println(" a = " +a);
     System.out.println(" b = " +a);
     System.out.println(" a + b = " +(a+b));
     System.out.println(" a - b = " +(a-b));
     System.out.println(" a × b= " +(a × b));
     System.out.println(" a / b= " +((a / b));
     System.out.println(" a % b= " +(a % b));
   }
}

Output of the program:
a = 10
b = 5
a + b = 15
a - b = 5
a × b = 50
a / b = 2
a % b = 0

2. Relational Operators

Post a Comment

0 Comments