abstract class AbstractCase2 {
abstract static void simpleMethod1();//giving error
}
class Case2 extends AbstractCase2 {
static void simpleMethod1() {
System.out.println("Within simpleMethod1");
}
public static void main(String args[]) {
simpleMethod1();
System.out.println("with AwM");
}
}
Getting error:
C:\>javac Case2.java
Case2.java:8: error: illegal combination of modifiers: abstract and static
abstract static void simpleMethod1();
^
1 error