Monday, April 23, 2018

Can an interface have default keyword in method with bodies ?

  1. interface MyInterfaceExe {
  2. public default void run(){
  3. // code here
  4. }
  5. }
Yes ! we can have default keyword in method with bodies.

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