C. 099 may be the answer because for loop will create #LocalVariable of i & it will execute once at i=0; due to #break statement;
and then outside of for loop 99 will be print as scope of final int variable i=99.
Hence, 099 may be the answer.
#JavaQuiz #ImpTweet #KauaLe
-
-
-
Yes it is, and your explanation is awesome.
- Još 1 odgovor
Novi razgovor -
-
-
C,beacuse of {break;}

- Još 2 druga odgovora
Novi razgovor -
-
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
C, in the first iteration i (local) ==0, prints 0, then loop reaches break and go out of loop, and then we print static i. IMHo
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
099...... local variable i=0 print first then break local variable i scopes ends and after that static final i value get printed..... Happy Shappy coding
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
C... I cheated though and ran the code
I thought though that the compiler would’ve gotten mad about “i” already being declaredHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
No, Java
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.