Skip to content
José da Cruz

Enterprise Architect, and Life Thinker

José da Cruz

Enterprise Architect, and Life Thinker

Tag: constructors

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 – 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
  • architecture (167)
  • artificial-intelligence (6)
  • books (2)
  • courses (4)
  • decision-frameworks (4)
  • finances (1)
  • java (8)
  • life-improvement (20)
  • metrics (3)
  • observability (2)
  • puzzles and challenges (3)
  • reviews (1)
  • security (8)
  • Soft Skills (1)
  • spring-boot (36)
  • Systems Thinking (3)
  • GitHub Weekly: AI Agent Tools Trending Right Now (November 2 – November 8, 2026)
  • Designing a Distributed Session Store: Why Sticky Sessions Break Under Load
  • Essential Reading: Release It! — Why Production Is a Different Game Than Development
  • GitHub Weekly: Top 10 Trending Repos (October 26 – November 1, 2026)
  • GitHub Weekly: Architecture & Infra Tools Worth a Look (October 19 – October 25, 2026)
©2026 José da Cruz | WordPress Theme by SuperbThemes