Solved

Consider the Following Code Snippet

Question 18

Multiple Choice

Consider the following code snippet:
Public interface Sizable
{
Double size;
Double getSize() ;
}
What is wrong with this code?


A) The getSize method must be declared as public.
B) the getSize method must be declared as public.
C) The getSize method must be declared as final.
D) An interface type cannot have instance variables.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions