Increment and Decrement Operators In Hindi:-

 

दोस्तों आज के Java Programming Tutorial में आप Increment and Decrement Operators के बारे में पढ़ेंगे |

 

++ Increment operator :- Increment operator किसी integer के साथ 1 जोड़ देता है | मतलब की अगर integer 5 है तो Increment operator उसे 5++ = 6 बना देगा |

 

— Decrement operator :- Decrement operator किसी integer से 1 घटा देता है | मतलब की अगर integer 5 है तो Decrement operator उसे 5– = 4 बना देगा |

 

 

Example Of Increment and decrement operators in JAVA Programming Language

Example 1 :-

package JavaOperators;
import java.util.Scanner;
public class Main {
     private static Scanner sc;
      public static void main(String[] args) {
      int i, j;
      sc = new Scanner(System.in);
      System.out.println(" Please Enter two integer Value: ");
      i = sc.nextInt();
      j = sc.nextInt();
      System.out.println("----JAVA INCREMENT OPERATOR EXAMPLE---- \n");
      System.out.format(" Value of i : %d \n", i); //Original Value
      System.out.format(" Value of i : %d \n", i++); // Using increment Operator
      System.out.format(" Value of i : %d \n", i); //Incremented value 
      System.out.println("----JAVA DECREMENT OPERATOR EXAMPLE---- \n");
      System.out.format(" Value of j : %d \n", j); //Original Value
      System.out.format(" Value of j : %d \n", j--); // Using Decrement Operator
      System.out.format(" Value of j : %d \n", j); //Decrement value

        }
}

 

 

Bitwise Operator In Hindi :-