is that possible to create a inner class within an interface? If yes, why do we create like that? Anyways we are not going to create any interface objects?
Do they help in any Development process?
is that possible to create a inner class within an interface? If yes, why do we create like that? Anyways we are not going to create any interface objects?
Do they help in any Development process?
An interesting use case is to provide sort of a default implementation to interface methods through an inner class as described here: https://stackoverflow.com/a/3442218/454667 (to overcome the problem of single-class-inheritance).