Home » Archives for Gilbert Lopez

Author Archives: Gilbert Lopez

Gilbert Lopez
Gilbert Lopez is an application developer and systems integration developer with experience building business solutions for large and medium-sized companies. He has worked on many Java EE projects. His roles have included lead developer, systems analyst, business analyst and consultant. Gilbert graduated from from California State University in Los Angeles with a Bachelor of Science degree in Business.

Garbage Collection in Java

In this article, we will cover garbage collection in Java. We’ll look at the Garbage Collector and discuss the conditions that make an object eligible for collection. We’ll also explore the topics of object reachability and object cleanup. Finally, we’ll show how to call the garbage collector in our code. 1. Introduction When writing an application, you may need to ...

Read More »

Migrating from Java 8 to Java 13

In this article, we will demonstrate how to migrate an application from Java SE 8 to Java SE 13. 1. Introduction Oracle began a six-month release cadence for Java Standard Edition starting with Java 10. Instead of being major version releases, they are instead “feature releases”. This release cycle is in the spirit of Continuous Integration / Continuous Deployment and ...

Read More »

IoC Spring Example

In this post, we feature a comprehensive article about IoC Spring. We will discuss Inversion of Control and how it is applied in Spring. 1. IoC Spring – Introduction Inversion of Control is an OOP design principle for writing code that is loosely coupled. The objective is to outsource certain responsibilities typically performed by a class to an external entity, ...

Read More »

Spring @AliasFor Annotation Example

In this example, we will show how to use the @AliasFor annotation in Spring. 1. Introduction Annotations are decorators that provide metadata about classes, methods, parameters or fields. Depending on the annotation, metadata may be processed at compile-time and/or runtime. Examples of annotations include: JUnit annotations (@Test, @Before, @After)JPA annotations (@Entity, @Table, @Id)Spring Framework annotations (@Controller, @Configuration, @Autowired) Meta-annotations are ...

Read More »

Introduction to Monolithic Architecture

In this article, we will discuss the characteristics of a monolithic architecture. 1. Introduction We’ve heard about microservices and how they allow for a more agile software development approach to developing applications. However, there are still many software projects that use a monolithic architecture when developing an application. In fact, many microservices projects started out as monolithic applications. Let’s take ...

Read More »

Spring Form Validation Example

In this example, we will show how to implement server-side form validation in a Spring MVC application. 1. Introduction Form validation is a basic requirement for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid before processing the data. There are ...

Read More »

Spring Boot Bean Validation Example

In this example, we will demonstrate how to use Bean Validation in a Spring Boot REST application. 1. Introduction Data validation is a basic requirement for any application, especially for web applications that accept data as input. For example, you may want to ensure that an email address or credit card number sent in a request is valid. Before the ...

Read More »

JAX-WS Hibernate Example

In this example, we feature a comprehensive article on JAX-WS Hibernate. We will demonstrate how to create a SOAP-based web service that uses Hibernate to read data from a database. 1. Introduction Java API for XML Web Services (JAX-WS) is a technology for developing SOAP-based web services and clients. The API includes annotations for defining web service endpoints, service implementation beans, ...

Read More »

Math.pow Java Example

In this article, we examine the Math.pow Java method so as to use exponents in java and we provide some examples of its use. 1. Introduction The java.lang package provides classes and interfaces that are central to the Java programming language. The Math class from the java.lang package contains static methods for performing many common math operations. In java, these ...

Read More »

Java 12 String Methods Example

In this article, we will discuss the new methods of the String class introduced in Java SE 12. 1. Introduction The latest Java release (Java SE 12) arrives on the heels of Java SE 11, due to the twice-annual release schedule. It is more akin to a point release than a major release, with only minor changes from the previous ...

Read More »