forum

Home / DeveloperSection / Forums / Why can't static methods be abstract in Java

Why can't static methods be abstract in Java

Anonymous User 1923 27-Jul-2015
The question is in Java why can't I define an abstract static method? for example
abstract class foo {
    abstract void bar( ); // <-- this is ok
    abstract static void bar2(); //<-- this isn't why?
}

Updated on 27-Jul-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By