Interfaces in Java 8: The Default Method, with Examples
Learn how the default method in Java 8 interfaces works, how it lets you add behavior without touching your classes, and how it simulates multiple inheritance.
Code
Inside articles there are more settings: width, font size, series position and code.
Saved in this browser.
Learn how the default method in Java 8 interfaces works, how it lets you add behavior without touching your classes, and how it simulates multiple inheritance.
Learn what enums are in Java, how they work as special classes, and how to add attributes and private constructors, with football examples.
Learn the tools:xxxxx attributes in Android: design-time helpers like tools:ignore, context, layout and listitem that make building your layouts easier.
Learn how multitasking works in Java with threads. Step-by-step examples using the Thread class and the Runnable interface, with a supermarket checkout demo.
Learn how to customize, export and share a code formatting style in Eclipse for Java and PHP so your whole team writes clean, consistent code.
Learn how interfaces work in Java and how they take polymorphism a step further than abstract classes, with a practical example of a football team.
Learn what polymorphism is in Java and how it works in object-oriented programming, with abstract classes, method overriding and a football team example.
Learn what inheritance is in object-oriented programming and how it works in Java, using extends, protected and super with a clear, practical example.
Learn how to use the Java Map interface with examples: HashMap, TreeMap and LinkedHashMap, their key methods, iterators and working with your own objects.