import java.io.Serializable;
public class ImplementsExtendsOrder implements Serializable extends Object {
}
It turned out when declaring a java class, the
\jdk6\bin\javac ImplementsExtendsOrder.java
ImplementsExtendsOrder.java:7: '{' expected
public class ImplementsExtendsOrder implements Serializable extends Object {
^
1 error
extends
clause has to come before implements
clause. The error message about missing {
did lead me to check matching {}
many times without finding anything.The correct way to declare such a class is to put implements clause before extends clause:
import java.io.Serializable;
public class ImplementsExtendsOrder extends Object implements Serializable {
}