Skip to content

Month: March 2017

Java Thread Class in Five Minutes

I wrote this article for SitePoint’s Java channel, where you can find a lot of interesting articles about our programming language. Check it out!

In a running Java program, all code is executed in threads and within a thread everything happens sequentially, one instruction after another.
When Java (or rather the JVM) launches, it creates one thread for the main method to be executed in.
From there, new threads can be created to execute code in parallel to the main one.
The most basic way to do that is to use the Thread class.

This article does not require any knowledge of multithreaded programming, but you need to be familiar with core Java concepts such as classes and interfaces.

Leave a Comment

Beyond POJOs – Ten More Ways to Reduce Boilerplate with Lombok

I wrote this article for SitePoint’s Java channel, where you can find a lot of interesting articles about our programming language. Check it out!

Lombok is a great library and its main selling point is how it declutters POJO definitions.
But it is not limited to that use case!
In this article, I will show you six stable and four experimental Lombok features that can make your Java code even cleaner.
They cover many different topics, from logging to accessors and from null safety to utility classes.
But they all have one thing in common: reducing boilerplate to make code easier to read and more expressive.

Leave a Comment