java 012

Publié le: 20 juillet 2020
sur la chaîne: Ruqy STA & IT
235
28

#logical operators in javaThese operators are used to perform logical “AND”, “OR” and “NOT” operation, i.e. the function similar to AND gate and OR gate in digital electronics. They are used to combine two or more conditions/constraints or to complement the evaluation of the original condition under particular consideration. One thing to keep in mind is the second condition is not evaluated if the first one is false, i.e. it has a short-circuiting effect. Used extensively to test for several conditions for making a decision. Let’s look at each of the logical operators in a detailed manner:

‘Logical AND’ Operator(&&): This operator returns true when both the conditions under consideration are satisfied or are true. If even one of the two yields false, the operator results false. For example, cond1 && cond2 returns true when both cond1 and cond2 are true (i.e. non-zero).


Sur cette page du site, vous pouvez voir la vidéo en ligne java 012 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Ruqy STA & IT 20 juillet 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 235 fois et il a aimé 28 téléspectateurs. Bon visionnage!