IF Statements in java

Java if Statements In Hindi – Control Statements in Hindi

Java

Java If Statements In HindiConditions Statements in Hindi – Program Main Condition Ke Hisab Se Statements Ko Control Karne Ke Liye Control Statements ka istemal Kiya Jata Hain | Lekin Java Main Koi Types Ki Control Statement Hoti Hain, Jinka Link Niche Diya Gaya Hain |

  1. if_else Statement
  2. else_if Statement
  3. switch Case Statement
  4. break Statement
  5. continue Statement

Java If Statements In Hindi

Waise To Har Programming Language Main Control Statement Ka Istemal hota Hain Usi Tarah Java Main Bhi Control Statement Ka Istemal Hota |

If Statement Ko Ham Jab Istemal Karte Hain Jaha Par Hame Koi Condition Ko Check Karna Hota Hain |

Jab Hamare Duvara Diya Gaya Test Expression Agar True Hota Hai To If Statement Execute Hota Hain |

  • Less than: a < b
  • Less than or equal to: a <= b
  • Greater than: a > b
  • Greater than or equal to: a >= b
  • Equal to a == b
  • Not Equal to: a != b

Read Also : Full Course C programming in Hindi

Syntax:

if (condition) {
  // block of code to be executed if the condition is true
}

Condition Check Karne Ke Liye if Ka Istemal Kiya Jata Hain Naki Capital IF Ka Nhi to Ye error Show Karenga |

Example:

public class Myclass {
  public static void main(String[] args) {
 
    int x = 10;
    int y = 9;
    
    if(x>y){
      System.out.println("X Value Is Greater");
    }
  }
}

Output:

X Value Is Greater

Is Program Main Aap Dekh Sakte Hain Ki Hamne x = 10 Assign Ki Hain Hamne Ek Condition Ko Lagaya Hain Ki if(x >y) Hain, Aap Is Condition Main Dekh Sakte Hain Ki X Value Greater Hain Isliye Condition True Hogi |

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 IF Statements In Java 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 *