Answers

Question and Answer:

  Home  Java Classes

⟩ Tell me Is it possible to declare an anonymous class while implementing an interface?

Interface i = new Interface(){/* Code}The above statement creates an instance of a class which implements the Interface "Interface". As name of class is not specified hence it is anonymous.

 128 views

More Questions for you: