Question: public static void main ( String [ ] args ) { int lcv; int LIMIT = 3 ; lcv = 1 ; while ( lcv

public static void main(String[] args){
int lcv;
int LIMIT =3;
lcv =1;
while(lcv < LIMIT)
{
System.out.print(lcv+",");
LIMIT = LIMIT +1;
}
}
Which of the statements is incorrect?
a. The loop will execute three times and print 1,1,1.
b. The loop will execute three times and print 1,1,1,.
c. The loop will execute two times and print 1,1,.
d. The loop will execute infinite times and print 1,1,1....

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!