I've bought a
book on Amazon "OCP Oracle Certified Professional
Java SE 11 Developer Practice Tests"
That's a book full of tests.
In chapter 2, question #18 is:
""Which of the following statements compile and create infinite loops at runtime? (Choose two.)"
Variants are:
A. while (!false) {}
B. do {}
C. for( : ) {}
D. do {} while (true);
E. while {}
F. for( ; ; ) {}
Correct answer is A, D, F. So it's three options, not two as is asked.
In answeres to that book in Appendix correct answers are A, D, F
Task description is incorrect