What is an anonymous object Java?

Anonymous object. Anonymous simply means nameless. An object which has no reference is known as an anonymous object. It can be used at the time of object creation only. If you have to use an object only once, an anonymous object is a good approach.

Sizin İçin Seçtik  Should I use inner classes in Java?

Leave a Reply

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