Yes you can create an instance of an interface using the anonymous inner class syntax and providing implementation of all the methods of the interface. Interfaces and Anonymous inner classes both can't have a constructor. But you can create an instance initializer block in the anonymous inner class.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!