&& (comparision between two oprands) in the above two conditions are false so the ans is false.
&&: It check two conditions true the result is true otherwise false. If one condition is true other condition is false then again the ans is false.
Sheetal said:
(Wed, Nov 9, 2011 06:50:51 PM)
3 is not greater than 6 i.e 3>6=false.
7 is greater than 4 i.e 7>4=true
single & is used for logical & operation,while && is used for comparison of conditions therefore it is false
Mukesh said:
(Tue, Dec 13, 2011 03:03:18 PM)
3 is not greater than 6 i.e 3>6=false.
7 is greater than 4 i.e 7>4=true
Single & is used for logical & operation,while && is used for comparison of conditions therefore it is false.
Divya said:
(Thu, Mar 15, 2012 07:56:33 AM)
Ya its right the use Of && is for comparison thereby here answer is false.
&& operator is comes under logical operator, if all operands i.e. conditions are true it evaluates to true and if any one or more than one or all of them are wrong it will evaluate to false.
It is necessary that all conditions should be true.
Noora said:
(Tue, Apr 17, 2012 09:35:05 AM)
3>6 is false
7>4 is true
In this expression AND condition is used
In and if one statement is false all result is false 3>6&&7>4
Shariq said:
(Mon, Sep 17, 2012 07:56:02 PM)
First condition evaluated is 3>6 which is not true, condition is not checked further.
After which, if it was written 3<6, which is true then only second condition is tested for its trueness or false,
Let us consider condition before && evaluated true.
2 cases arise if the next condition is true or not.
Accordingly then, use of && operator states if any one of i/p is false then result is false.