• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OCAJP8 - Mock exam 3 - question on "Interface Methods" answer C seems to be wrong

 
Artem Lovan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer gives A;C;D;F as correct answer.

Given that answer A is correct, which interface methods; they, can be declared abstract, static, or default.

Answer C seems wrong, following in the explanation "They ..." this "they" is again -> abstract, static, or default.
But if a static method is declared in an interface it can't be overridden since static method can only be hidden.

Please correct if I'm not following the logic.

interface-methods.png
[Thumbnail for interface-methods.png]
Interface Methods
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Artem Lovan wrote:Please correct if I'm not following the logic.

You'll find a nice explanation/discussion about this question in this topic. Definitely worth reading!

Hope it helps!
Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic