Hi suresh,
(Condition)?1:2;
Lets say a situation prevails like above.If the condition is "TRUE" the thing in '1' will be executed if it is false the thing in the '2' will be executed.
Example:
i=5;
(if==9) ? "equal":"not equal";
Now the condition is false so "Not equal" will be the output for this.
In your case
boolean flag = false *flag=false is initialized .*
do
{
//set of commands to execute
}
while ( (flag)? true:false); **Checks whether condition (flag) is true.It is not as it is initialized to false.So the 2 statement is executed.Which is "False " in your case.
I hope you got it
Ganesh Kumar