Page 1 of 1

About Question enthuware.ocpjp.v8.2.1771 :

Posted: Tue Dec 11, 2018 8:43 pm
by ichelite
Given the file name is TestClass.java and the class TestClass must be public. So the correct answer should be none of the above.

Re: About Question enthuware.ocpjp.v8.2.1771 :

Posted: Tue Dec 11, 2018 9:58 pm
by admin
Why must TestClass be public?

Re: About Question enthuware.ocpjp.v8.2.1771 :

Posted: Thu Dec 13, 2018 9:32 am
by ichelite
I got confused by the concept. The answer is correct. Only the one public class must have the same name as the filename.

Re: About Question enthuware.ocpjp.v8.2.1771 :

Posted: Thu Dec 13, 2018 10:13 am
by admin
:thumbup: