Computer Science, asked by laxmi1974, 4 months ago

Q 19. Write the java expression​

Answers

Answered by tanujafartyaltnk
0

Explanation:

Java Expressions, Statements and Blocks

Java Expressions

A Java expression consists of variables, operators, literals, and method calls. To know more about method calls, visit Java methods. For example,

int score;

score = 90;

Here, score = 90 is an expression that returns an int. Consider another example,

Double a = 2.2, b = 3.4, result;

result = a + b - 3.4;

Here, a + b - 3.4 is an expression.

if (number1 == number2)

System.out.println("Number 1 is larger than number 2");

Here, number1 == number2 is an expression that returns a boolean value. Similarly, "Number 1 is larger than number 2" is a string expression.

i think it will help you

Answered by 1234bhavya
1

Answer:

values, variables,operators and method calls

Explanation:

hope this answer will be helpful

Similar questions