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
About Question enthuware.ocajp.i.v8.2.1481 :
Moderators: Site Manager, fjwalraven
-
- Posts: 1
- Joined: Thu Jul 20, 2017 9:00 am
- Contact:
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1481 :
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.
I have removed it to avoid confusion.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 55 guests