enthuware.ocpjp.v11.2.3380

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

Moderator: admin

Post Reply
ketank
Posts: 10
Joined: Thu Apr 15, 2021 9:02 am
Contact:

enthuware.ocpjp.v11.2.3380

Post by ketank »

Excerpts from justification for option #1

...
However, note that if a warning is suppressed in a module-info file, the suppression applies to elements within the file and not to types contained within the module.
...

Could you pls elaborate this with an example.



Thx.

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

Re: enthuware.ocpjp.v11.2.3380

Post by admin »

Not sure what kind of example are you looking for. All it means is that if you apply @SuppressWarnings to an element in a module-info then it will not suppress the warnings emanating from the classes contained in that module.
It is not really important for the exam but provided just as information.
You may see this to get an idea : https://stackoverflow.com/questions/496 ... odule-warn
If you like our products and services, please help us by posting your review here.

ketank
Posts: 10
Joined: Thu Apr 15, 2021 9:02 am
Contact:

Re: enthuware.ocpjp.v11.2.3380

Post by ketank »

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 91 guests