---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 25 Edition"
java_version: 25
chapter: "Chapter 15. Expressions"
section: "15"
heading: "Chapter 15. Expressions"
source: https://docs.oracle.com/javase/specs/jls/se25/html/jls-15.html
id: "15"
url: https://jvm.obfuscated.software/jls/se25/15.html
raw: https://jvm.obfuscated.software/jls/se25/15.md
---

# Chapter 15. Expressions

Much of the work in a program is done by evaluating *expressions*, either for their side effects, such as assignments to variables, or for their values, which can be used as arguments or operands in larger expressions, or to affect the execution sequence in statements, or both.

This chapter specifies the meanings of expressions and the rules for their evaluation.

**Sections:**

- [15.1. Evaluation, Denotation, and Result](15.1.md)
- [15.2. Forms of Expressions](15.2.md)
- [15.3. Type of an Expression](15.3.md)
- [15.4. Floating-point Expressions](15.4.md)
- [15.5. Expressions and Run-Time Checks](15.5.md)
- [15.6. Normal and Abrupt Completion of Evaluation](15.6.md)
- [15.7. Evaluation Order](15.7.md)
- [15.8. Primary Expressions](15.8.md)
- [15.9. Class Instance Creation Expressions](15.9.md)
- [15.10. Array Creation and Access Expressions](15.10.md)
- [15.11. Field Access Expressions](15.11.md)
- [15.12. Method Invocation Expressions](15.12.md)
- [15.13. Method Reference Expressions](15.13.md)
- [15.14. Postfix Expressions](15.14.md)
- [15.15. Unary Operators](15.15.md)
- [15.16. Cast Expressions](15.16.md)
- [15.17. Multiplicative Operators](15.17.md)
- [15.18. Additive Operators](15.18.md)
- [15.19. Shift Operators](15.19.md)
- [15.20. Relational Operators](15.20.md)
- [15.21. Equality Operators](15.21.md)
- [15.22. Bitwise and Logical Operators](15.22.md)
- [15.23. Conditional-And Operator &&](15.23.md)
- [15.24. Conditional-Or Operator ||](15.24.md)
- [15.25. Conditional Operator ? :](15.25.md)
- [15.26. Assignment Operators](15.26.md)
- [15.27. Lambda Expressions](15.27.md)
- [15.28. switch Expressions](15.28.md)
- [15.29. Constant Expressions](15.29.md)
