posted 15 years ago
Hello Rachana,
In both cases you reach the innest "if" block if and only if every previous "if" condition is true.
Don't be fooled by a long "if" condition with a bunch of &&: as soon as the first && is false, the execution skips outside the "if" (the remaining && in the single long condition are not evaluated).
Cheers,
Giovanni