Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

All the variables of interface should be?

a) default and final
b) default and static
c) public, static and final
d) protect, static and final

Answer: c
Explanation: Variables of an interface are public, static and final by default because the interfaces cannot be instantiated, final ensures the value assigned cannot be changed with the implementing class and public for it to be accessible by all the implementing classes.

Join The Discussion