Leave a Reply 4

Your email address will not be published. Required fields are marked *


Kevin

Kevin

C. Compilaton fails is the correct answer because private void init() is not accessible outside the class in which it is defined, so c.init() will produce a compilation error.

If you remove c.init() from the code then it would work and print:

Initialized
Started

Ryan

Ryan

Agree. I get the same results. Which leaves me very confused why everyone is answering this as B.