About Question enthuware.ocpjp.v8.2.1771 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
ichelite
Posts: 7
Joined: Tue Dec 11, 2018 8:40 pm
Contact:

About Question enthuware.ocpjp.v8.2.1771 :

Post 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.

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Why must TestClass be public?
If you like our products and services, please help us by posting your review here.

ichelite
Posts: 7
Joined: Tue Dec 11, 2018 8:40 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

:thumbup:
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 108 guests