java8-the-missing-tutorial
java8-the-missing-tutorial copied to clipboard
Java 8 for all of us
https://github.com/shekhargulati/java8-the-missing-tutorial/blob/master/01-default-static-interface-methods.md Rule 3: Otherwise, the class has to call the desired implementation unambiguously Running with openjdk version "1.8.0_144" OpenJDK Runtime Environment (Zulu 8.23.0.3-macosx) (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (Zulu...
Hi, At https://github.com/shekhargulati/java8-the-missing-tutorial/blob/master/01-default-static-interface-methods.md, I saw: ``` Calculator calculator = new BasicCalculator(); int sum = calculator.add(1, 2); BasicCalculator cal = new BasicCalculator(); int difference = cal.subtract(3, 2); ``` > Oh no!...
For my project I need to extend objects, so normally I use external libraries for example `jQuery.extend(...)` or `lodash.merge(...)`: ``` javascript // test "lodash" lib var test = {id: 1};...