Java - Count the number of classes in the program

Question | Jul 25, 2016 | mnagu 

How many classes are declared in this program?

interface B{}
public class C{
    class D{
        void d(){
            c(new A(){});
        }
    }
    void c(A a){
        class E{
            B b = new B(){};
        }
    }
    static class A{}
}
2015 nextptr