PRC2 Quizzs : Week 02 -> https://quizizz.com/join/quiz/63eabef623f7d6001ef3c2bf/start/?studentShare\=true Week 03 -> https://quizizz.com/join/quiz/63fd354818c111001dda84b0/start/?studentShare\=true Week 04 -> https://quizizz.com/join/quiz/64063f4ef7dcc5001d48c95b/start/?studentShare\=true Week 05 -> https://quizizz.com/join/quiz/640f81dd71ad52001d1dc3cf/start/?studentShare\=true Week 06 -> https://quizizz.com/join/quiz/6416d6f343b0fc001dc8c5b5/start/?studentShare\=true Week 07 -> https://quizizz.com/join/quiz/6421d14c2246c3001ee249ee/start/?studentShare\=true Week 08 -> https://quizizz.com/join/quiz/643e37ab4cc54c001e51d228/start/?studentShare\=true Week 09 -> https://quizizz.com/join/quiz/6446c7be303588001dd043a0/start/?studentShare\=true Week 10 -> https://quizizz.com/join/quiz/64593679679320001eec79f6/start/?studentShare\=true Week 12: https://quizizz.com/join/quiz/646c42a3a1eff5001dc4a867/start/?studentShare%5C=true Week 14: https://quizizz.com/join/quiz/647da947c7a4f8001d1bc54e/start/?studentShare%5C=true
Producer use extends
Consumer use super
private, final field for each piece of data
getter for each field
public constructor with a corresponding argument for each field
equals method that returns true for objects of the same class when all fields match
hashCode method that returns the same value when all fields match
toString method that includes the name of the class and the name of each field and its corresponding value
exports
What the module provides. Use with one package per line.
module
starts the declaration
open
if before the module, opens the whole module for reflection. For instance for a module that defines all entities of a multi-module application.
opens
allows reflection of a package. Use with one per package per line.
provides
To indicate that a module implements some interface with one or more implementations.
requires
Indicates what the module itself needs or reads. One package per line.
transitive
Used with requires to indicate that there is a requirement that is then made readable to the users of this module as well.
to
Used to restrict either exports or opens to specific other module(s).
uses
To indicate that a module uses a service provided by another module.
with
Used with provides to indicate which implementation(s) are available for the provided interface implementation.
is visible
In any sub-class, inside or outside package
In any class within the same package
Variables are initialized before use
Method calls match the types of object references
Rules for accessing private data and method are not violated
Local variable accesses fall within runtime stack
The runtime stack does not overflow