#11 Logical Operators in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น •

  • @studywithshallusalaia2987
    @studywithshallusalaia2987 ปีที่แล้ว +13

    00:01 Logical operators in Java allow you to combine multiple conditions
    01:30 Logical operators in Java allow computers to make decisions based on multiple conditions.
    02:57 Logical operators in Java
    04:22 Logical Operators in Java: And, Or, Not
    05:46 Logical operators in Java allow for short circuiting, saving time in the evaluation.
    07:08 Implementing logical operators in Java
    08:27 Logical AND (&&) operator returns true only if both conditions are true
    09:55 Logical operators in Java allow for combining multiple conditions

  • @fifaham
    @fifaham ปีที่แล้ว +4

    @1:38 You may envision "AND" operator as two switches connected in series, and "OR" operator as two switches connected in parallel. If "AND" is used then both the switches must be ON to produce an active output. If "OR" operator is used then one, or more, of the switches need to be ON to produce an active output. That was from the basic electric circuit perspective. The inverting logic "NOT" is like using an inverting BJT transistor: common Emitter, with input at the Base and output at the Collector (for electrical engineers).

    • @kurdotv769
      @kurdotv769 ปีที่แล้ว

      i love this! should help people to visualise it even better if it wasnt clear yet!

  • @pankajmishra8170
    @pankajmishra8170 ปีที่แล้ว +10

    Learned same thing in phython..thanks bro

  • @Krishna-z1g5r
    @Krishna-z1g5r 9 หลายเดือนก่อน +1

    Your explained it was very good sir thank you sir

  • @swamypalthaya9208
    @swamypalthaya9208 4 หลายเดือนก่อน

    best lecture i found from here

  • @sheikhusman.4931
    @sheikhusman.4931 2 หลายเดือนก่อน

    Love you sir ❤❤👍

  • @ankitsrivastav273
    @ankitsrivastav273 8 หลายเดือนก่อน +1

    I had study AND OR NOT gate operation in class 12 phy chapter - semiconductor and logic gates😊

  • @mansikalyankar9834
    @mansikalyankar9834 ปีที่แล้ว

    You explained it really very well🥹😄

  • @rutulkarbhari4963
    @rutulkarbhari4963 ปีที่แล้ว +1

    even if my condition is true and my code is written right, my output is always giving me false. Why? i tried most of the conditions but the output is always FALSE.

  • @She_needs_boutique
    @She_needs_boutique 11 หลายเดือนก่อน

    sir in the previous videos you mentioned only class demo..... but here you have mentioned public class demo what is the difference between class and public class sir

  • @simonason9342
    @simonason9342 ปีที่แล้ว +11

    What is the diffrence between "public class" and just "class"?

    • @C_o_d_e_Help
      @C_o_d_e_Help ปีที่แล้ว +5

      if we do not specify any modifier then JVM considers it as default access modifier
      so public class is public with access modifier public
      class means default with default modifier;

    • @mannepallibalaji8786
      @mannepallibalaji8786 10 หลายเดือนก่อน +9

      class mean it is a default class
      Which cannot be accessed in other classes
      Whereas public class can be accessed in any class of the package....

    • @Xtreme_Gamer01
      @Xtreme_Gamer01 6 หลายเดือนก่อน

      ​@@C_o_d_e_Help thnx❤❤

    • @MaryJohn-n7l
      @MaryJohn-n7l 6 หลายเดือนก่อน +1

      In java,we are having modifiers topic separately.we are having 2 modifiers one is access modifiers.other one is non-access modifiers.In access modifiers,we are having public,default,protected,private.Access modifier means controls the access level.for classes we can use public or default.the public keyword is an access modifier meaning that is used to set the access level for classes,methods,attribute and constructor.public class is accessible by any other classes.for default,this is used when you dont specify a modifier.the class is only accessible by classess in the same package.

    • @MIHIR_RAJPUT-1810
      @MIHIR_RAJPUT-1810 3 หลายเดือนก่อน +2

      Hey brother simply if your file name and your class name are same (like p1.java). Then you have to start your code with public class ❤

  • @HimaJohn
    @HimaJohn 3 หลายเดือนก่อน

    1:36 what

  • @DHHcovers
    @DHHcovers ปีที่แล้ว

    9.59 me and Phil condition false for bhi true aya

  • @Mahesh-cw4ix
    @Mahesh-cw4ix ปีที่แล้ว +2

    there is mistake in that and false false make false not true

  • @Actiontitanium
    @Actiontitanium ปีที่แล้ว

    genuine gajini

  • @jayasurya7927
    @jayasurya7927 3 หลายเดือนก่อน

    class Hello
    {
    public static void main(String[] args)
    {
    float a = 5.6f;
    float b = 5.5f;
    int x = 10;
    int y = 11;
    boolean c = true;
    System.out.println(!(ay);
    //System.out.println(x