Learning Spring Boot from Zero to Cloud: Part 9 – H2 in Spring Boot with Web josedacruz, March 15, 2025 Continue Reading
(pt) Componentes de segurança no Spring Boot 3 josedacruz, September 1, 2024September 1, 2024 (portuguese) Este video faz parte do curso que criei em Spring Boot 3, e explica os principais componentes de segurança. Podem encontrar o curso na Udemy aqui https://www.udemy.com/course/spring-boot-da-terra-a-cloud/?referralCode=097457F956591AE382BA Continue Reading
aPaaS – Application Platform as a Service josedacruz, January 20, 2024January 20, 2024 Continue Reading
Java Learning – Constructors and Attributes josedacruz, January 18, 2024January 19, 2024 The main role of a constructor is to initialize an object, not to create the object.When an object is created, by using the new keyword, Java knows that memory should be allocated to have at least space to address all the attributes defined in the class.For instance, the following class,… Continue Reading
Java Learning – Constructor chaining josedacruz, January 12, 2024January 12, 2024 Constructor chaining refers to invoking one constructor from another within the same class. This technique offers several benefits, including: Consider the Java class ColoredPoint2D, which is equipped with three distinct constructors: What should the constructors include to eliminate code redundancy and accommodate the three use cases? The primary constructor, which accepts… Continue Reading
Java learning – Immutability with Records – Constructors josedacruz, January 9, 2024January 9, 2024 Records, in Java, can help to implement immutability due to their inherent properties and restrictions. Here’s an example illustrating how records achieve immutability with a record: With this Point record, the fields x and y are implicitly final. Once a Point object is instantiated, its x and y values cannot… Continue Reading
Java Learning – Multiple Constructors josedacruz, January 5, 2024January 5, 2024 A Java class can have multiple constructors. A default no-parameter constructor, as described in a previous post, and overloading constructors, as many as necessary. When a class doesn’t have any constructors, Java simply provides a default constructor, but as soon as another constructor is written, the default constructor is not… Continue Reading
Java Learning: Default Constructor josedacruz, January 3, 2024 The objective of a constructor is to create an object from a class blueprint. Since the main idea of this action is to create and initialize an object, it makes sense to use the class’s name as the method’s name. This is a special method since it has no explicit… Continue Reading