What is the use case and advantage of Anonymous class in java? : <p>What i know about Anonymous class is when you have any class or interface , and only someof your code need to implement or override some class or interface Anonymously ,it increases the readability of program . But i am Little bit confused suppose in future you need to implement same interface for different class , so in that case you have to refactor you previous class , so is there any other advanrage of Anonymous class ?(Is it improves performance ?)</p>
