Relational Operators in Java


Relational operators are used to compare two values.

Source Code

int x = 5, y = 3;
System.out.println(x > y);  // Outputs true because 5 is greater than 3

Relational operators are fundamental for controlling the flow of the program through conditions.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments