Skip to content
UPEEC

Reference Types

Variables of class, interface and array types hold references to objects on the heap.

Easy
Comments 0

== compares references; use .equals() for content. A reference can be null — the source of NullPointerException.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.