Vote count:
0
public class InnerClass {
private static class B{}
}
What are the corresponding class files that it compiles to? Somewhere I heard the answer as it compiles to InnerClass.class and B.class. But after I actually tried it, it was InnerClass$B.class and InnerClass.class .
Any method it can be compiled to InnerClass.class and B.class? This is from an interview.
asked 31 secs ago
Static inner class compile results
Aucun commentaire:
Enregistrer un commentaire