Question: In the following Java fragment if ( a > b ) if ( c > d ) x = 1 0 0 ; else x
In the following Java fragment
ifab
ifcd
x ;
elsex ;
Question options:
else is associated with if ab
else can be associated with if cd or if ab
syntax error in the program fragment
else is associated with if cd
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
