Комментарии:
Abstract methods can't be declared as private.
Ответить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......");
}
}
thnks
ОтветитьAbstract class may or may not have any abstract methods
ОтветитьAn abstract class may not have any abstract method.
Ответитьbetter if explained in an editor by writing and executing, instead of reading content in a blog
ОтветитьIn interface all member variabled are public static final bydefault rt?
ОтветитьI think it better to explain more in your own words instead of studying that because fresher students want more in depth
ОтветитьMan to good explanation.. thanks thanks thanks
ОтветитьAbstract method can't be declared as final. Bcz Once we declares final it can't be changed ,but abstract method must be overrided.
ОтветитьBut in case java 8 how to differentiate means when will use interface and abstract class
Ответить