Venkatesh Nambiyar
Venkatesh Nambiyar

Reputation: 1

Anonymous Object in Java / JVM

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

Answers (0)

Related Questions