Anonymous Object in Java / JVM

92 views Asked by At

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();
    }
}
``
0

There are 0 answers