Anonymous Object in Java
An object which has no reference variable is called anonymous object in Java. Anonymous means nameless. So, an anonymous object is an object without a specific name or reference variable. An anonymous object is not stored in a named variable.…


