What is the difference between anonymous class and inner class?

1 Answer. A local inner class consists of a class declared within a method, whereas an anonymous class is declared when an instance is created . So the anonymous class is created on the fly or during program execution.

Sizin İçin Seçtik  What class must an inner class?

Leave a Reply

Your email address will not be published. Required fields are marked *