Java - Greater than Operator

Java Conceptuel Diagram

About

The greater than operator (>)

Data Type

Primitive

The greater than operator (>) applies only to primitive types such as short, int, double, long, float, byte, and char.

Reference

To compare objects, use a type parameter bounded by the Comparable

interface:
public interface Comparable<T> {
    public int compareTo(T o);
}







Share this page:
Follow us:
Task Runner