#11 Logical Operators in Java

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 24

  • @studywithshallusalaia2987
    @studywithshallusalaia2987 Год назад +11

    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 8 месяцев назад +1

    Your explained it was very good sir thank you sir

  • @swamypalthaya9208
    @swamypalthaya9208 2 месяца назад

    best lecture i found from here

  • @ankitsrivastav273
    @ankitsrivastav273 7 месяцев назад +1

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

  • @mansikalyankar9834
    @mansikalyankar9834 10 месяцев назад

    You explained it really very well🥹😄

  • @simonason9342
    @simonason9342 Год назад +9

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

    • @C_o_d_e_Help
      @C_o_d_e_Help Год назад +4

      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 9 месяцев назад +6

      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 5 месяцев назад

      ​@@C_o_d_e_Help thnx❤❤

    • @MaryJohn-n7l
      @MaryJohn-n7l 4 месяца назад +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 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 ❤

  • @She_needs_boutique
    @She_needs_boutique 10 месяцев назад

    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

  • @sheikhusman.4931
    @sheikhusman.4931 24 дня назад

    Love you sir ❤❤👍

  • @DHHcovers
    @DHHcovers Год назад

    9.59 me and Phil condition false for bhi true aya

  • @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.

  • @Mahesh-cw4ix
    @Mahesh-cw4ix Год назад +2

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

  • @HimaJohn
    @HimaJohn 2 месяца назад

    1:36 what

  • @jayasurya7927
    @jayasurya7927 Месяц назад

    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

  • @Actiontitanium
    @Actiontitanium Год назад

    genuine gajini