Multiple Choice Question

Quiz Guidelines

 

QID: 
42
Validated against: 
java8
Question: 

Which of the following for statements are valid?

A.

for(;;){}

B.

for(int i;;){}

C.

for(int i;;i++){}

D.

for(int i=0;;i++){}

E.

int i = 0;
for(;;i++){}

F.

for(;true;){}

G.

for(int i=0;true;i++);

 

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!