posted 10 years ago
No, an unimplemented method might be a syntax errorIs the second part of that code the body of foo() which has a semicolon entered by mistake or is it an instance initialiser following the abstract method foo()?
∴ You do not allow unimplemented methods even in abstract classes, unless they have been marked abstract. That is how the compiler is programmed, and I presume that is how the Java® Language Specification defines an abstract method.