When to use abstract class and interface in Java

When to use abstract class and interface in Java

learnprograming byluckysir

4 года назад

50,715 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

DEEPAK BURRA
DEEPAK BURRA - 28.09.2023 15:33

Abstract methods can't be declared as private.

Ответить
manish kumar
manish kumar - 22.12.2022 18:57

It's not necessary to have abstract method in abstract class
public abstract class Test40 {
public static void main(String[] args) {
System.out.println("test......");
}

}

Ответить
Exotic Me
Exotic Me - 04.10.2022 19:58

thnks

Ответить
Mohd. Abu Bakre
Mohd. Abu Bakre - 08.09.2022 19:26

Abstract class may or may not have any abstract methods

Ответить
Smarajit Naskar
Smarajit Naskar - 03.04.2022 18:13

An abstract class may not have any abstract method.

Ответить
Ananth Vraj
Ananth Vraj - 27.02.2022 08:06

better if explained in an editor by writing and executing, instead of reading content in a blog

Ответить
Manjusha Yenakandla
Manjusha Yenakandla - 20.01.2022 12:19

In interface all member variabled are public static final bydefault rt?

Ответить
vishnu pavan
vishnu pavan - 18.01.2022 09:23

I think it better to explain more in your own words instead of studying that because fresher students want more in depth

Ответить
Amii Mahajan
Amii Mahajan - 21.08.2021 16:00

Man to good explanation.. thanks thanks thanks

Ответить
tulasi bakkireddy
tulasi bakkireddy - 20.02.2020 21:18

Abstract method can't be declared as final. Bcz Once we declares final it can't be changed ,but abstract method must be overrided.

Ответить
lucky singh
lucky singh - 02.01.2020 07:51

But in case java 8 how to differentiate means when will use interface and abstract class

Ответить