Monday, April 23, 2018

What is the default nature of an interface method's ?

  1. interface MyInterfaceExe {
  2. // Any number of abstract method declarations
  3. void run();
  4. // is equivalent to public abstract void run();
  5. int test();
  6. // is equivalent to public abstract int test();
  7. }
 The default nature of an interface method's is both public & abstract.

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...