Reputation: 1
Where will Anonymous objects are stored in JVM memory. How to get hashcode of the Object?
public class Outer {
public class Inner {
public void display() {
System.out.println("Inner class method");
}
}
public static void main(String[] args) {
new Outer().new Inner().display();
}
}
``
Upvotes: 0
Views: 121