anonymous class in java 8 code example
Example: anonymous object java example
//for Java 10
boolean result = true;
var objResult = new Object() {
boolean success = result;
};
System.out.println(objResult.success);
//for Java 10
boolean result = true;
var objResult = new Object() {
boolean success = result;
};
System.out.println(objResult.success);