Which two changes need to be made to make this class compile?

Given:

Which two changes need to be made to make this class compile? (Choose two.)
A. Change Line 1 to an abstract class:
public abstract class API {
B. Change Line 2 access modifier to protected:
protected void checkValue(Object value)
throws IllegalArgumentException;
C. Change Line 1 to a class:
public class API {
D. Change Line 1 to extend java.lang.AutoCloseable:
public interfChange Line 1 to extend java.lang.AutoCloseable:
public interface API extends AutoCloseable {ace API extends AutoCloseable {
E. Change Line 2 to an abstract method:
public abstract void checkValue(Object value)
throws IllegalArgumentException;

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which two changes need to be made to make this class compile?

Leave a Reply

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


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