English

How is Java expression different from statement? - Computer Applications

Advertisements
Advertisements

Question

How is Java expression different from statement? 

Answer in Brief

Solution

  1. Java Expression: Java Expression is a collection of variables, constants, and arithmetic operators. In other words, it combines operators and operands. Example: a*b+8.
  2. Java Statement: In Java, applying an expression to a variable creates an arithmetic statement. Example: m = a*b + 8.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 44]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.04 Operators in Java
EXERCISES | Q V. 2. | Page 44
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×