English

What is an expression?

Advertisements

Question

What is an expression?

Short Answer
Advertisements

Solution

An expression in Java is a combination of variables, constants, operators, and method calls that produces a value when evaluated. Expressions are used to perform calculations, comparisons, and logical operations in a program. For example, a + b is an arithmetic expression that calculates the sum of two variables.

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Variables and Expressions - EXERCISE [Page 133]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 6 Variables and Expressions
EXERCISE | Q 53. | Page 133
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×