2016-10-14

Java 8: Glossary of a session

OCP
Open/Closed Principle
Open for extension, Closed for modification Principle
SAM / Function Object
Only one method in a class. See: @FunctionalInterface; eg. Callable or Runnable.
Covariant Overriding
During inheritance, an overridden method's return type can be changed to one of it's subtypes. Eg. when overriding clone().
Erasure
Type parameters are removed from the types in the class bytecode.

No comments :

Post a Comment