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.
It means you cannot override a non-static method with a static method either. The second line of the explanation already makes it very clear, " You can, however, redeclare a static method of a super interface as a default method in the sub interface."
If you like our products and services, please help us by posting your review here.
The explanation to the first (not correct) option is:
"You cannot override a static method with a non-static method. You can, however, redeclare a static method of a super interface as a default method in the sub-interface."
The option was to use "static String getId() {return "AIN8888"; }" to override "public default String...". So, the explanation refers to a different problem and is not fitting the option. The Explanation should say: "You cannot redeclare a default method as a static method in a sub-interface."
It is fixed. The explanation says, "You cannot override a non-static method with a static method and vice versa.". The last part was not there earlier.
If you like our products and services, please help us by posting your review here.