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

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