Geek Code Java Java Tutorial For Beginners 9 – Logical Operators in Java

Java Tutorial For Beginners 9 – Logical Operators in Java





Java logical operators
Searches related to Logical Operators in Java
logical operators in java examples
relational operators in java
use of logical operators in java
logical operators in java definition
logical operators in java meaning
use bitwise logical operators in java
different logical operators available in java
bitwise operators in java

Tags: , , , , , , , , , , , ,

43 thoughts on “Java Tutorial For Beginners 9 – Logical Operators in Java”

  1. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    https://www.slajobs.com/java-training-in-chennai/
    https://www.slajobs.com/dot-net-training-in-chennai/
    https://www.slajobs.com/r-programming-training-institute-in-chennai/

    call : 86087 00340 / 86818 84318

  2. else statement is showing error message??

  3. Hi, tried adding 3 conditions in IF with && Operator but it seems that java its comparing boolean with java condition .can you please help on this?

  4. getting erroe on else .. please help

  5. Just love it. You are such a good instructor. Now, I feel like I'm learning Java much better than before just because of you. Thank you very much 🙂

  6. Kodi Admin says:

    Put in everything exactly as in the video and zero output. I checked, and triple checked, and quadruple checked for any mistakes and there isn't any. Only thing is the interpreter doesn't recognize System.out.println() as there is no blue colored "out" in the code. Does anyone know how to solve this?

  7. Can also be done as

    package first;
    public class MyProgram{
    public static void main(String[] args) {
    int x=20, y=40;
    boolean A;
    if (x>10 && y>30) {
    A=true;
    }
    else {
    A=false;
    }
    System.out.println("the condition is " + A);
    }
    }

  8. There is also not logical operator

  9. best tutorial that intrigued student more in practical than any other, thanks 👍👍

  10. mihir mehta says:

    when i type else {} and output inside the brackets it gives error

  11. how can i type OR OPERATOR sign

  12. Kumar Ratan says:

    your videos are awesome I have learned many things from your videos

  13. Thank you so much for this precise courses! It helps me a lot.

  14. you have done a great job…thanx for your all videos.

  15. New Web says:

    package Lesson1;

    import java.util.Scanner;

    public class MyClass {
    static Scanner reader = new Scanner(System.in);
    public static void main(String[] args) {
    int note1,note2;
    System.out.println("Enter Note 1: ");
    note1=reader.nextInt();
    System.out.println("Enter Note 2: ");
    note2=reader.nextInt();
    // && Means: AND || Means: OR
    if ((note1 >=10) && (note2 >= 10)) {
    System.out.println("You have Succeeded ^^");
    }
    else {
    System.out.println("You Fucked Up -_-");
    }

    }

    }

  16. What about the not logical operator

  17. this tutorial is great keep up this work!

  18. samladsat says:

    aaaand bye for now 😛

  19. emny23 says:

    Great videos! These videos are helping me a ton in my class!

  20. Mark Banks says:

    int subject1 = 100%;-)

  21. Jacob says:

    so what about not in boolean?

  22. LukaXD says:

    Omgggg thankss xD i watched some of tutorials and than next day i tried to do something simpe with all i learned anddd i did itt without errors or help ^^

  23. Capricon 555 says:

    Just one question,it's really irritating me.I want to get output in such a way e.g if(Subject1>Subject2)
    Output=Subject1 is greater than Subject2
    .I just wanted the syntax..I couldnt do this with println or printf.Give me easy syntax.i'm beginner….

  24. R says:

    public class MyClass

    public static void main (String []) args) }
    int subject1 = 30;
    int subject2 = 80;
    // && -> AND || -> OR
    if (subject 1 >=35) //|| (subject2 >= 35) {
    system.out.println("the condition is true");
    else {

    System.out.println ("the condition is false");
    }
    }
    }

  25. Chris Smit says:

    I love how the C syntax is identical to the Java syntax

  26. alem belko says:

    nevermind i got it

  27. alem belko says:

    can you write
    if ((subject1 =11) || (subject2=13)){
    Sytem.out.println ("score");
    }

  28. Betül Özer says:

    Is there any place that i can get the code?

  29. Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Syntax error on token "||", invalid OnlySynchronized
    Syntax error, insert "}" to complete ClassBody

    at lesson1.MyClass.main(MyClass.java:9)

  30. Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Syntax error on token "&&", invalid OnlySynchronized
    Syntax error, insert "}" to complete ClassBody

    at lesson1.MyClass.main(MyClass.java:9)

  31. my && has a squiggly red line underneath it, and it won't comply give me an error. . What do i do?

  32. Ronald Perez says:

    Deeply appreciated. Speed is OK, not everybody speaks english here in you tube, so it is great that you took this in consideration. This curse is great and best of all is free (as in free beer). Keep on with the good work and just take the best of advices from comments. Best Regards !!

  33. i try to type syso bot it doesn't work for me.

  34. -> is an invalid operator

  35. you are a very good instructor , but you should have made lessons a little bit faster this is kinda slow.

  36. public class My class {

    public static,void main (string []) {
    int subject1 = 20;
    int subject = 25;
    if ((subject >= 35) || (subject >= 35)) {
    System.out.print1n ("the condition is true");
    } else {
    System.out.print1n ("the condition is fales);
    }
    }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *