- interface MyInterfaceExe {
- public default static void run(){
- // code here
- }
- }
No ! we can not have both default and static keyword in method with body. Compiler will give an error saying that illegal combination of modifier at line 2.
To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...
No comments:
Post a Comment