Interface | Sololearn: Learn to code for FREE!

0

Interface

Is it true or false Interface contains only abstract methods?

5/14/2020 4:18:23 PM

Haritha Vuppula

4 Answers

New Answer

+1

Indian question is about in addition to methods : it may contain constants (variables which are static and final).. From java 8, it is allowed to have default and static methods in interfaces... So answer is false only..

+13

True. But what's the point of this? You could have checked the lesson: https://www.sololearn.com/learn/Java/2167/

+1

i know it is true but in one java quiz it got false! i think it was wrong ans thank you Царь СОБАКА - Догго l

0

thank uJayakrishna🇮🇳