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
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.
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
The correct answer is B It hides the secret implementation details from another developer using the ... View full answer
Get step-by-step solutions from verified subject matter experts
