Logical Operators in Java - Java Tutorial 19

preview_player
Показать описание
Notes for You:: Logical Operators in Java - Java Tutorial 19
- are also known as logical connectives.
- are used to connect one or more relational expressions (or conditional expressions).
- accept Boolean values as operands on evaluation they yield the result either true or false .

- There are 3 logical operators available in Java. They are:

&&: Logical And Operator:
- If both LHS and RHS operands are true then the result will be true, in all other cases the result will be false.

||: Logical Or Operator:
- If both LHS and RHS operands are false then the result will be false, in all other cases the result will be true .

!: Logical Not Operator:
- If the given operand is true, then the result will be false. Vice versa.

Example Code:
package logicaloperatorsdemo;

public class LogicalOperatorsDemo
{
public static void main(String[] args)
{
}
}

=========================================

Follow the link for next video:

Follow the link for previous video:

=========================================

Java Tutorials Playlist:-

=========================================
Watch My Other Useful Tutorials:-

C++ Tutorials Playlist:

C# Tutorials Playlist:-

C Programming Tutorials Playlist:

C Practical LAB Exercises Playlist:-

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #JAVA #JAVATutorial
Рекомендации по теме
Комментарии
Автор

Once you watch the video; answer the following questions:
1. Explain logical operators in Java

ChidresTechTutorials
Автор

Your videos are very understandable. Best part is it is short and clear. Thank you for all your efforts.

iluvmymumydadysomuch