Skip to Main Content
Java
book

Java

by Michael Sikora
January 2003
Beginner to intermediate content levelBeginner to intermediate
150 pages
7h 28m
English
Morgan Kaufmann
Content preview from Java
26
Chapter 3: Flow Control m
27
28
29 }
System.out.println("no of args =
" + args.length);
i
CalculateProduct--third version
3.2 Relational and Logical Operators
We have already encountered the equals relational operator ==. Listed next are all the relational
operators.
> greater than
>= greater than or equal to
< less than
<= less than or equal to
These are all of equal precedence. The remaining two operators are of lower precedence.
== equals
!= not equals
The precedence rules mean that in the following code fragment:
int a = S, b = 4;
boolean c = true;
if (a > b == c) {
System. out. println("Condition true") ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Programming

Java Programming

Poornachandra Sarang
JAVA Programming

JAVA Programming

K. Rajkumar
Java Programming

Java Programming

Hari Mohan Pandey
Java 9 for Programmers

Java 9 for Programmers

Paul J. Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781558609099