Equality and Relational Operators

1
2
Variables
PREVIEW8m 49s
3
Data Types
12m 34s
10
11
14

## The course is part of this learning path

Start course
Difficulty
Beginner
Duration
2h 12m
Students
97
Ratings
4/5
Description

In this course, we'll learn about Java data types and operators.

### Learning Objectives

• Variables
• Data Types
• Type Conversion & Type Casting
• Operators
• Operator Precedence
• Expressions, Statements and Block

### Intended Audience

• Anyone looking to get Oracle Java Certification
• Those who want to learn the Java Programming language from scratch
• Java developers who want to increase their knowledge
• Beginners with no previous coding experience in Java programming
• Those who want to learn tips and tricks in Oracle Certified Associate – Java SE 8 Programmer certification exams

### Prerequisites

• No prior knowledge is required about the Java programming language.
• Basic computer knowledge
Transcript

Hi there. In this video we'll talk about Equality and Relational Operators. The equality and relational operators determine if one operand is greater than, less than, equal to, or not equal to another operand. Let's look at these operations.

== : This operator checks if the value of two operands are equal or not. If yes, then the condition becomes true.

!= : This operator checks if the values of two operands are equal or not. If values are not equal, then the condition becomes true.

> : This operator checks if the value of the left operand is greater than the value of the right operand. If yes, then the condition becomes true.

< : This operator checks if the value of the left operand is less than the value of the right operand. If yes, then the condition becomes true.

>= : This operator checks if the value of the left operand is greater than or equal to the value of the right operand. If yes, then the condition becomes true.

<= : This operator checks if the value of the left operand is less than or equal to the value of the right operand. If yes, then the condition becomes true.

Let's make some examples with equality and relational operators. In exercise project, right click on the operator package. 