Home » Archives for Sergio Lauriano Junior

Author Archives: Sergio Lauriano Junior

Sergio is graduated in Software Development in the University City of São Paulo (UNICID). During his career, he get involved in a large number of projects such as telecommunications, billing, data processing, health and financial services. Currently, he works in financial area using mainly Java and IBM technologies.

Java ClassLoader Example

In this article, we’re going to discuss different types of Java ClassLoader, how they work and some examples to build our own implementation. 1. Introduction A class loader is an object that is responsible for loading classes. The ClassLoader class is an abstract class that uses a delegation model to search for classes and resources. Furthermore, the ClassLoader is part of JRE ...

Read More »

How to Download and Install OpenJDK 11

In this article, we going to see how to download and install OpenJDK 11 and present its features with some examples and discuss it. 1. Introduction OpenJDK 11 is the open-source reference implementation of version 11 of the Java SE Platform as specified by JSR 384 in the Java Community Process. This version of JDK is the alternative for Oracle JDK that is paid ...

Read More »

Array Declaration in Java

This article is about the Array Declaration in Java. But first, we will explain one important data structure used, the Array. 1. Introduction An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. We can store in an array any kind of data from primitive ones ...

Read More »

How to Generate a Random Int in Java

This article shows how to generate a random Int in Java using different approaches. 1. Introduction Java has several ways to generate a random Integer, primitive or wrapped object, on its environment. Here we’ll see some of these methods listed below: Random classMath classThreadLocalRandom class 2. Pre-requisites The minimum Java version for execute this article’s example is JDK 8 (find ...

Read More »

Modules of Spring Architecture

In this article, we’ll look at the Spring Framework architecture, how its modules works, and the benefits of using this powerful environment. 1. Introduction Since Spring Framework is a Java based platform, it provides a comprehensive and solid software infrastructure while we can focus on the aspects of our application. In other words, Spring Framework handle all the base of ...

Read More »

Spring Boot Version

In this article, we’ll see some information about Spring Boot versions and how to build a project using Maven and Gradle. 1. Introduction Spring Boot is one of the most used Java frameworks nowadays. This powerful tool helps developers to quickly implement and deliver an application with the best practices, using a consistent integration between all his libraries and APIs. ...

Read More »

How to Kill MySQL Process

This article is to describe how to kill a MySQL process and how to use long-running queries using a few commands on the terminal. 1. Introduction MySQL has tools to help us to manage and enhance our database performance. As an example, when a heavy query is executed on the database, it does a lot of issues like delay in ...

Read More »

Java 15 New Features Tutorial

In this article, we provide a tutorial about the new features of Java 15. With a lot of improvements and modernization features, Java 15 arrived at the beginning of September. Let’s see them all together! 1. Introduction Java 15 came with fourteen new features, grouped in the following categories: New FeaturesEdwards-Curve Digital Signature Algorithm (EdDSA)Hidden Classes Incubating and Preview FeaturesSealed ...

Read More »

Java 14 Switch Expressions

In this article, we will see one of the new features of Java 14 which are the Switch Expressions. Switch Expressions is an evolution of the Switch statement in Java, that was used as a decision code block.  1. Introduction Below, are the subjects that we’ll look in the article: Traditional Switch caseSwitch Expressions in Java 14Using Lambdas We start taking ...

Read More »