import java.lang.*;

class Logical_Operators
{
public static void main(String args[])
{
System.out.println(“\nLogical AND : \n”);
System.out.println(“True && True : “+(true&&true));
System.out.println(“True && False : “+(true&&false));
System.out.println(“False && True : “+(false&&true));
System.out.println(“False && False : “+(false&&false));

System.out.println(“\nLogical OR : \n”);
System.out.println(“True || True : “+(true||true));
System.out.println(“True || False : “+(true||false));
System.out.println(“False || True : “+(false||true));
System.out.println(“False || False : “+(false||false));

System.out.println(“\nLogical NOT : \n”);
System.out.println(“! True : “+(!true));
System.out.println(“! False : “+(!false));
}
}

23,801 total views, 162 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

1,563 Thoughts to “Java Program To Demonstrate Logical Operators”

  1. Everything is very open with a clear explanation of the
    challenges. It was really informative. Your site is useful.

    Thank you for sharing!

  2. Gracias por compartir su maestría en esta área. Hay mucho Info inútil en esto que flota alrededor y aprecio su trabajo duro.
    Rene Caovilla store http://www.renecaovillastore.online

  3. Bookmarked this particular web page, will come again for much more. You, my friend, awesome! I discovered just the details I by now explored in all places and just can’t find. What a perfect site. Such as this site your web site is 1 of my new most-loved.I like this information proven and it has given me some sort of enthusiasm to possess good results for some cause, so keep up the very good perform!
    discount keen outlet http://www.keenoutlet.online

Leave a Comment