Java Booleans

Java Booleans in Hindi

Java

Java Booleans in HindiBooleans Data Types In Hindi – Booleans Ka Istemal keval TRUE Or FALSE Mai Results Lene Ke Liye Kiya Jata Hain |

  • YES / NO
  • ON / OFF
  • TRUE / FALSE

Also Read – Java Math

Java Booleans in Hindi

Booleans Ko Declare Karke Ke Liye boolean keyword Ka Istemal Kiya Jata Hain And Ye Return Mai True Or False Deta Hai|

Example:

boolean isMasterPrograming = true;
boolean isOtherPrograming = false;
System.out.println(isMasterPrograming);     // Outputs true
System.out.println(isOtherPrograming);   // Outputs false

Output:

true
false

Booleans Ka Istemal Ham Jyadartar > Greater Ya == equal to Etc Mai Karte Hai |

Inhe Example Ke Sath Understand Karte Hain |

Example:

public class MyClass {
  public static void main(String[] args) {
    int x = 10;
    int y = 9;
    System.out.println(x > y); // returns true, because 10 is higher than 9 
	System.out.println(10 > 9);
    System.out.println(x == 10);
    System.out.println(10 == 15);
  }
}

Output:

true
true
true
false

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 Booleans Functions 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 *