> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Java Greater Than Or Equal To

The `>=` (greater than or equal to) operator is a binary relational operator that evaluates whether the value of its left operand is mathematically greater than or equal to the value of its right operand. It evaluates the relationship and returns a primitive `boolean` value: `true` if the left operand is greater than or equal to the right, and `false` otherwise.

```java theme={"dark"}
operand1 >= operand2
```

## Type Compatibility

The `>=` operator strictly requires numeric operands. It is compatible with:

* **Primitive numeric types:** `byte`, `short`, `char`, `int`, `long`, `float`, and `double`.
* **Wrapper classes:** `Byte`, `Short`, `Character`, `Integer`, `Long`, `Float`, and `Double`. When wrapper classes are used, Java performs auto-unboxing to extract the primitive value before evaluation.

It cannot be applied to `boolean` types or non-wrapper reference types (such as `String` or `Object`).

## Evaluation Mechanics

**1. Binary Numeric Promotion**
If the operands are of different numeric types, Java applies binary numeric promotion before performing the comparison. The operand with the "smaller" type is implicitly widened to match the "larger" type according to the Java Language Specification (JLS).

```java theme={"dark"}
int val1 = 5;
double val2 = 5.0;

// val1 is promoted to double (5.0) before comparison
boolean result = val1 >= val2; // Evaluates to true
```

**2. Character Evaluation**
When applied to `char` types, the operator compares their underlying 16-bit unsigned integer Unicode values.

```java theme={"dark"}
char char1 = 'b'; // Unicode value 98
char char2 = 'a'; // Unicode value 97

boolean result = char1 >= char2; // Evaluates to true
```

**3. Floating-Point Edge Cases (IEEE 754)**
The operator adheres to IEEE 754 standards for floating-point comparisons:

* **NaN (Not a Number):** If either operand is `Float.NaN` or `Double.NaN`, the `>=` operator strictly evaluates to `false`, even if both operands are `NaN`.
* **Signed Zeros:** Positive zero (`+0.0`) and negative zero (`-0.0`) are considered strictly equal. Therefore, `+0.0 >= -0.0` evaluates to `true`.

```java theme={"dark"}
double num = 10.0;
double nanValue = Double.NaN;

boolean result1 = num >= nanValue;       // Evaluates to false
boolean result2 = nanValue >= nanValue;  // Evaluates to false
boolean result3 = 0.0 >= -0.0;           // Evaluates to true
```

## Operator Precedence

The `>=` operator has a lower precedence than arithmetic operators (`+`, `-`, `*`, `/`, `%`) but a higher precedence than equality operators (`==`, `!=`) and logical operators (`&&`, `||`).

```java theme={"dark"}
int x = 10;
int y = 5;

// Arithmetic (x - 5) is evaluated first, then the relational comparison
boolean result = x >= x - y; // Evaluates to 10 >= 5 (true)
```

<div
  style={{ 
display: "flex", 
justifyContent: "space-between", 
alignItems: "center", 
maxWidth: "754px", 
padding: "1rem 0",
marginBottom: "24px"
}}
>
  <span style={{ fontWeight: "bold", fontSize: "1.25rem", color: "var(--tw-prose-headings)", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" }}>Tired of Poor Java Skills? Fix That With Deep Grasping!</span>

  <a
    href="https://syntblaze.com"
    target="_blank"
    style={{ 
  marginLeft: "24px",
  textDecoration: "none", 
  backgroundColor: "#007AFF",
  color: "#ffffff", 
  padding: "6px 16px", 
  borderRadius: "16px",
  fontSize: "0.9rem",
  fontWeight: "600",
  textAlign: "center",
  transition: "background-color 0.2s ease"
}}
  >
    Learn More
  </a>
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/skill-tracking.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=b9b0305c93bb501c9e767b5c76c88835" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/skill-tracking.png" />

  <img src="https://mintcdn.com/syntblazellc/23tyuOzaWS88qFlc/images/nuggets.png?fit=max&auto=format&n=23tyuOzaWS88qFlc&q=85&s=c86c80197299762989e9b882419b2109" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/nuggets.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/bite-sized-exercises.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=a65f9a38c37ff28ab73ed783c53c60e3" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/bite-sized-exercises.png" />
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap", marginTop: "12px" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/mastery-chain.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=748a1763454713e679260fbb95f154a2" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/mastery-chain.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-previews.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=242f61448ff5dd6deaaab2dccc13b507" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-previews.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-explanations.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=cf0fc1c31f9cd0fc26716781be05fbc9" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-explanations.png" />
</div>
