Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Interface Abstract Class

1. All methods are abstract till jdk 1.7 It supports abstract and non-abstract
methods
From jdk 1.8 it supports static and
default methods- both are non-abstract

2. Methods- Public Methods- It may/not be


public/final/static

3. Variables- public/final/static Variables- It may/not be


public/final/static

4. No Constructor It allows constructor

5. Keyword- interface Keyword- abstract

6. Can't instantiate Can't instantiate

7. I-I-> extends I-C-> implements | C-C-> extends

8. With in class will implements n no With in class will extend only one
class at
interface by using "," seperated a time

You might also like