Which annotation should be used to remove warnings from compilation?

Given:

Which annotation should be used to remove warnings from compilation?
A. @SuppressWarnings on the main and print methods
B. @SuppressWarnings("unchecked") on main and @SafeVarargs on the print method
C. @SuppressWarnings("rawtypes") on main and @SafeVarargs on the print method
D. @SuppressWarnings("all") on the main and print methods

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “Which annotation should be used to remove warnings from compilation?

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.