Wednesday, 5 February 2014

ICSE 10th Standard Notes – Expressions in Java

Expression :

An expression in Java is any valid combination of operators, constants and variables. The expressions in Java are classified into three categories namely :
  • Arithmetic Expression.
  • Relational / Logical Expression
  • Compound Expression

Arithmetic Expression :

An Arithmetic Expression may contain just one numeric variable or a constant, or it may have two or more variables and constants, or two or more expression joined by valid Arithmetic operators. Two or more operators should not occur in continuation.

The Arithmetic Expression are divided into :
  • Pure integer expression.
  • Pure Real expression.

Pure Integer Expression : are formed by connection integer constants and integer variables using integer arithmetic operators.

Example : 
int a,b,c,d;
d=a*b/c;

Pure Real Expressions : are formed by connection real constants and real variables using all real arithmetic operators.

Example :
double a,b,c,d;
d=a*b/c;

Pure Expressions : 

In Pure Expressions all the operands are of the same type.
Example : int a,b,c,d;
d=a*b+c;

Mixed Expression : 

In Mixed Expression, the operands are mixed or are of different data types.
Example : int a,b;
double c,d;
d=a*b/c;


ICSE 10th Standard Notes – Constants and Operators in Java
ICSE 10th Standard Notes – Variables in Java
ICSE 10th Standard Notes – Increment and Decrement Operators in Java
ICSE 10th Standard Notes – Boolean Expressions in Java
ICSE 10th Standard Notes – Arithmetic Operators and their precedence in Java
ICSE 10th Standard Notes – Statements in Java
ICSE 10th Standard Notes – Escape Sequences in Java
ICSE 10th Standard Notes – Relational Operators in Java
ICSE 10th Standard Notes – Assignment and Shorthand Operator in Java
ICSE 10th Standard Notes – Shift and Bitwise Operator in Java
ICSE Java Programs – Java Program to convert temperature from Celsius to Fahrenheit
ICSE Java Programs – Java Program to convert temperature from Fahrenheit to Celsius
ICSE Java Programs – Java Program to convert temperature from Fahrenheit to Celsius
ICSE 10th Standard – Comment Statements in Java
ICSE 10th Standard Notes – Some Operators in Java


Get Ebooks delivered to your email id

Comments

Subscribe to our channel

Facebook

Powered by Blogger.

Home | Contact Us | DMCA | Terms of Service | Privacy | Advertise

Maven Scientists