How is Java expression different from statement?
67 Likes
An expression is a set of variables, constants and operators i.e. an expression is a combination of operators and operands. When an expression is assigned to a variable, the complete set is referred to as a statement.
Answered By
37 Likes
If the value of basic=1500, what will be the value of tax after the following statement is executed ?
tax = basic > 1200 ? 200 : 100;
What is an operator? What are the three main types of operators? Name them.
Explain Arithmetic operator with an example.
Explain Relational operator with an example.