Boolean ( && , || , ! )

Boolean op1 && Boolean op2

Returns true if Op1 is true and Op2 is true.

Example

The return value of the following statement is abc.

Integer s=4,d=8;
Integer f=6;
if ( f>s && f<d )
{
return "abc";
}

Boolean op1 || Boolean op2

Returns true if Op1 is true or Op2 is true.

Example

The return value of the following statement is abc.

Integer s=4,d=8;
Integer f=6;
if ( f>s || f>d )
{
return "abc";
}

! Boolean op1

Returns true if Op1 is false.

Example

The return value of the following statement is def.

Integer s=4, d=8;
Integer f=6;
if ( ! ( f>s ) )
return  "abc"
else
return "def"