IF Else Statements in java

Java If Else Statements In Hindi – Control Statements In Hindi

Java

Java If Else Statements In HindiControl Statements In HindiIf Else control statements ko Diya Gaya expression true Hota Hai Tab if Statements Wala statement Execute Hota hai or agar expression false Hota hai tab Else Wala statement execute Nhi Hota hai.

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

Java If Else 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 |

Hamne Previously Post Main If Statements Ko Read Kiya Tha Agar Aapne IF Statements Ko Read Nhi Kiya Hai TO Aap Wah Bhi Kar Sakte Hain |

Block Diagram :

python if else hindi

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

Read Also : Full Course C programming in Hindi

Jab Hamare Duvara Diya Gaya Test Expression Agar True Hota Hai To If Statement Execute Hota Hain Or Agar Test Expression False Hota Hain Tab Else Wala Statement Execute Nhi Hota Hain |

Syntax:

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

Example:

public class Myclass {
  public static void main(String[] args) {
 
    int a = 10;
    int b = 20;
 	 if (a > b) {
    	System.out.println("A Value Is Greater");
  	} else {
    	System.out.println("B Value Is Greater");
    }
  }
}

Aap Upper DIye Gaye Program Ko Dekh Sakte Hain Or Jab If Condition True Hoti Hain If Wala Part Execute Hota Hain Or Jab If Condition False Hoti Hain To Else Wala Part Execute Hota Hain |

Output:

B Value Is Greater

Is Program Main Aap Dekh Sakte Hain Ki Hamne a = 10 And b = 20 Assign Ki Hain Hamne Ek Condition Ko Lagaya Hain Ki if(a > b) Hain, Aap Is Condition Main Dekh Sakte Hain Ki b Value Greater Hain Isliye Condition False 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 Else 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 *