Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1481 :

Posted: Thu Jul 20, 2017 9:05 am
by UserNameForEnthuWare
Why is there a semi colon after this default methods in the interface, I am looking at the oracle docs page for default methods and they dont have a semicolon after the method.
default String getId(){   
 return "1111";
};<-- here

Re: About Question enthuware.ocajp.i.v8.2.1481 :

Posted: Thu Jul 20, 2017 11:42 am
by admin
It is not required but it is not incorrect either. It is redundant.
I have removed it to avoid confusion.

thank you for your feedback!
Paul.