Tagged articles
constructors
12 articles · Page 1 of 1
The article explains that Java arrays, unlike regular objects, lack constructors because the JVM creates them directly via special bytecode instructions, automatically zero‑initialising elements and exposing length as a field, which trades flexibility for simplicity and performance.
JVMJavaarrays
0 likes · 6 min read

The article reveals ten essential Java concepts—from memory model and parameter passing to exception design and static misuse—explaining how each directly impacts performance, reliability, and interview success, and why mastering them is the real ceiling for any backend developer.
Equals vs ==Javaconstructors
0 likes · 9 min read

This tutorial walks through the fundamentals of Java objects, covering declaration, instantiation, referencing, practical code examples—including a HelloTest class and a Point/Rectangle demo—and explains Java's automatic garbage collection and manual cleanup techniques.
Example CodeJavaOOP
0 likes · 10 min read

The article explains the importance of auxiliary (secondary) constructors for flexible object creation, contrasts PHP's lack of support with Kotlin's feature, and demonstrates clean implementations using primary constructors and static factory methods to improve readability and maintainability.
Kotlinconstructorsdesign patterns
0 likes · 4 min read

This article explains how PHP constructors work in class inheritance, detailing when child classes must explicitly call parent constructors, how required parameters affect this behavior, and provides clear code examples illustrating proper use of the parent::__construct syntax.
Inheritanceconstructorsobject-oriented
0 likes · 8 min read

This article explains Java constructors, the importance of providing a no‑arg constructor, method overloading rules and type promotion, the use of the this and static keywords, memory cleanup strategies, garbage‑collector algorithms, JIT compilation, member initialization order, and enum usage with clear code examples.
Method Overloadingconstructorsgarbage collection
0 likes · 15 min read

This article explains the definition, execution timing, and practical uses of Java static code blocks, instance (constructor) code blocks, constructors, and regular code blocks, and demonstrates their exact execution order—including parent‑child class initialization—through clear code examples and output analysis.
Code Blocksconstructorsexecution order
0 likes · 8 min read

This article provides a comprehensive guide to advanced Java concepts, covering implicit, no‑arg, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection, helping developers deepen their object‑oriented mastery.
advanced-javaconstructorsdependency-injection
0 likes · 16 min read

This article provides a comprehensive guide to Java object creation, covering implicit, no‑argument, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection.
Initializationconstructorsdependency-injection
0 likes · 17 min read

This article compares three Java object‑creation techniques—telescoping constructors, the JavaBean pattern, and the Builder pattern—explaining their advantages, drawbacks, code examples, and when each approach is most appropriate for scalable and readable code.
Builder PatternJavaconstructors
0 likes · 6 min read

This article explores the key differences between Kotlin and Java for Android development, covering constructors, init blocks, val versus final, static equivalents with companion objects, top‑level declarations, arrays, collections, sequences, visibility modifiers, and includes practical exercises.
AndroidCompanion ObjectJava
0 likes · 23 min read

This article explains Java class fundamentals, including file naming rules, default member initialization, static loading order, inheritance mechanics, constructor behavior, super usage, and provides typical interview code examples with detailed output analysis.
ClassesInheritanceInitialization
0 likes · 12 min read
