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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
UserNameForEnthuWare
Posts: 1
Joined: Thu Jul 20, 2017 9:00 am
Contact:

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

Post 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

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests