No Image

Avoid memory leaks in inner classes

20 2 月, 2020 InfoWorld Java Tips 0

If you’ve read my Java 101 tutorial introducing static classes and inner classes, you should be familiar with the basics of working with nested classes in Java code. In this associated tip, I’ll walk you through one of the pitfalls of nesting classe…

No Image

Nesting with Java interfaces

20 2 月, 2020 InfoWorld Java Tips 0

If you’ve read my Java 101 tutorial introducing static classes and inner classes, you should be familiar with the basics of working with nested classes in Java code. In this Java tip, you’ll learn three common ways to use nesting techniques with Jav…

No Image

Installing Oracle Java SE 11 on Ubuntu 18.04

21 1 月, 2020 InfoWorld Java Tips 0

This article is a quick guide for Ubuntu Linux users installing Java 11, the current long-term support (LTS) Java version. I’ll briefly make the case for migrating your code base to Java 11, then guide you through the steps to install Oracle JDK 11 …

No Image

When to use composition vs inheritance

16 5 月, 2019 InfoWorld Java Tips 0

In Java 101: Inheritance in Java, Part 1, you learned how to leverage inheritance for code reuse, by establishing is-a relationships between classes. Composition is a closely related programming technique that is used to establish has-a relationships i…