Class clazz = new Object(){}.getClass();
Why is this possible and what would it mean? Could someone please remind me?
For example:
public class Testing {
public static void main(String[] args) {
Class clazz = new Object(){}.getClass();
System.out.println(clazz);
}
}
The result is: class Testing$1