Monday, April 23, 2018

Can a class implements multiple interface ?


  1. interface MultipleInterface {}
  2. interface MultipleInterface1 {}
  3. interface MultipleInterfac2 {}
  4. public class UserMain implements MultipleInterface, MultipleInterface1, MultipleInterfac2 {
  5. // code here
  6. }
Yes ! we can implements multiple interface in a class.

No comments:

Post a Comment

How to run standalone mock server on local laptop

 Please download the standalone wiremock server from Direct download section at the bottom of the page.  Download and installation Feel fre...