Explain how default methods enable you to add new methods to an existing interface without breaking the classes that implemented the original interface.

What will be an ideal response?

A default method provides a complete body with the method’s default implemen- tation. This allows you to add new methods to an interface and any class that implements the interface but does not override the default methods simply inherits the default implementations.

Computer Science & Information Technology

You might also like to view...

Screen savers were originally created to provide an interesting image on your screen

Indicate whether the statement is true or false

Computer Science & Information Technology

A Multivalued Lookup field accepts numerous options instead of just one field choice

Indicate whether the statement is true or false

Computer Science & Information Technology