Diagnostic Quiz
Problems
1-7. Interface Inheritance
Interface inherits another interface. A class implements an interface.

Staff interface implements the TaxPayer interface. TA implements the Staff interface.
False. Staff inherits, not implements, the TaxPayer interface.
1-13. Java Logging
Java has a default logging facility.
Java programmers need to use third-party logging libraries as Java does not have a default logging mechanism.
False. Java has a default logging facility.
2-18. SoC Principle
The principle of SoC states that the code which we are more concerned about should be separated out.
False. This is not the definition of SoC.
Tips
Interface inherits another interface. A class implements an interface.
Java has a default logging facility.
Java assertions cannot be used for exception handling.
In coupling, if X is coupled to Y if a change to Y can potentially require a change in X. It doesn't mean a change to Y must require a change in X.
SRP is about classes, not methods.
Last updated