Monday, April 23, 2018

Can an interface have static keyword in method with bodies ?

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

No comments:

Post a Comment

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...