githubEdit

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 SoCarrow-up-right.

Tips

  1. Interface inherits another interface. A class implements an interface.

  2. Java has a default logging facility.

  3. Java assertions cannot be used for exception handling.

  4. 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.

  5. SRParrow-up-right is about classes, not methods.

Last updated