About Question enthuware.ocpjp.v8.2.1771 :
Moderator: admin
-
- Posts: 7
- Joined: Tue Dec 11, 2018 8:40 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1771 :
Given the file name is TestClass.java and the class TestClass must be public. So the correct answer should be none of the above.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1771 :
Why must TestClass be public?
-
- Posts: 7
- Joined: Tue Dec 11, 2018 8:40 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1771 :
I got confused by the concept. The answer is correct. Only the one public class must have the same name as the filename.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 7 guests