How can I identify an anonymous inner class in a NotSerializableException
Board$1 is the first anonymous class encountered in Board.java. For example: class Board { public static void main(String[] args) { new Object() {}; // Board$1 new Object() {}; // Board$2 } } With an IDE like Eclipse, it’s easy to spot those anonymous classes in the outline view. I’m sure NetBeans has similar views: