What is the best reason for marking an existing static method private within in an interface? A.
Question:
What is the best reason for marking an existing static method private within in an interface?
A. It allows the method to be overridden in a subclass.
B. It hides the secret implementation details from another developer using the interface.
C. It improves the visibility of the method.
D. It ensures the method is not replaced with an overridden implementation at runtime.
E. It allows the method to be marked abstract.
F. Trick question! All static methods are implicitly private within an interface.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: