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 (154)
  • 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)
  • spring-boot (36)
  • Systems Thinking (3)
  • GitHub Weekly: MCP Tools Trending Right Now (September 28 – October 4, 2026)
  • The Bulkhead Pattern: Why One Slow Dependency Shouldn’t Sink the Whole Ship
  • Essential Reading: A Philosophy of Software Design — Fighting Complexity One Module at a Time
  • GitHub Weekly: Top 10 Trending Repos (September 21 – September 27, 2026)
  • The Volunteer Tax: Why Raising Your Hand in a Meeting Makes You the Permanent Owner
©2026 José da Cruz | WordPress Theme by SuperbThemes