What is the inner and anonymous inner class?

Java anonymous inner class is an inner class without a name and for which only a single object is created . An anonymous inner class can be useful when making an instance of an object with certain “extras” such as overloading methods of a class or interface, without having to actually subclass a class.

Sizin İçin Seçtik  What is an anonymous class in Java?

Leave a Reply

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