Programming - Interfaces - Discussion

You Are Here :: Home > JAVA > Interfaces - Discussion

 



Q.

An interface cannot contain instance fields. The only fields that can appear in an interface must be declared both static and final.                         


A. Interface B. Abstraction
C. Encapsulation D. Inheritance

Answer: Option A
Explaination:

 


An interface cannot contain instance fields. The only fields that can appear in an interface must be declared both static and final.




Discussion

Your Comments Goes here...
NameDiscussion