Tagged articles
21 articles
Page 1 of 1
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 24, 2025 · Fundamentals

Understanding Java’s final, finally, and finalize: Usage, Pitfalls, and Best Practices

This article explains the distinct purposes of Java's final keyword, finally block, and finalize method, shows how to use them with classes, methods, and variables, highlights scenarios where finally may not run, discusses finalize deprecation, and recommends modern resource‑management techniques like try‑with‑resources.

Exception HandlingJavaResource Management
0 likes · 5 min read
Understanding Java’s final, finally, and finalize: Usage, Pitfalls, and Best Practices
php Courses
php Courses
Aug 18, 2025 · Fundamentals

Mastering Polymorphism in C++: Virtual Functions, Override, and Final

This article explains C++ polymorphism, covering virtual functions, the override and final keywords, pure virtual functions, virtual destructors, vtable implementation, performance considerations, modern C++ improvements, and practical examples with code snippets.

Abstract ClassCOverride
0 likes · 9 min read
Mastering Polymorphism in C++: Virtual Functions, Override, and Final
Java One
Java One
May 25, 2022 · Fundamentals

When to Use Composition, Inheritance, or Delegation in Java? A Practical Guide

This article explains how Java developers can reuse code without duplication by employing composition, inheritance, and delegation, details the syntax and initialization rules for each, and clarifies the use of the final keyword for data, methods, parameters, and classes.

DelegationInheritanceJava
0 likes · 11 min read
When to Use Composition, Inheritance, or Delegation in Java? A Practical Guide
php Courses
php Courses
Dec 8, 2021 · Backend Development

Top 10 New Features in PHP 8.1

This article introduces the ten most important new features of PHP 8.1—including enums, fibers, the never return type, readonly properties, final class constants, array_is_list(), fsync/fdatasync, string‑key array unpacking, the $_FILES full_path key, and the IntlDatePatternGenerator class—each explained with clear code examples.

BackendEnumsFibers
0 likes · 15 min read
Top 10 New Features in PHP 8.1
Java Backend Technology
Java Backend Technology
Mar 25, 2021 · Fundamentals

Why Is Java’s String Immutable? Uncover the JVM’s Secret

This article explains why Java String objects are immutable, how the JVM’s string constant pool reuses instances, the role of the final keyword and char[] storage, and demonstrates that all mutating operations actually create new String objects rather than altering the original.

JVMJavaString
0 likes · 10 min read
Why Is Java’s String Immutable? Uncover the JVM’s Secret
Programmer DD
Programmer DD
May 18, 2020 · Fundamentals

Why Java’s final Fields Matter: Memory Model Rules Explained

This article explores Java’s memory model rules for final fields, detailing how writes and reads are ordered, the impact on object construction, examples with primitive and reference types, and processor-specific implementations, illustrating why final provides safe initialization without explicit synchronization.

JMMJavaMemory Model
0 likes · 13 min read
Why Java’s final Fields Matter: Memory Model Rules Explained
Programmer DD
Programmer DD
Sep 11, 2019 · Fundamentals

Why Java Strings Are Final and How Interning Affects Memory

This article explains the two ways to create Java strings, demonstrates how string literals are shared in the method area, shows the effect of the intern() method at runtime, and discusses why the String class is final, immutable, and thread‑safe.

JavaMemory ManagementString
0 likes · 8 min read
Why Java Strings Are Final and How Interning Affects Memory
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 27, 2018 · Backend Development

10 Paranoid Java Tricks Every Developer Should Know

This article shares a seasoned developer’s top ten obsessive Java programming techniques—ranging from placing string literals first to avoid NullPointerExceptions, never trusting early JDK APIs, treating -1 cautiously, enforcing final modifiers, and rigorously structuring switch statements—to help you write safer, more maintainable code.

best practicesfinalnullpointerexception
0 likes · 9 min read
10 Paranoid Java Tricks Every Developer Should Know
Java Captain
Java Captain
Nov 21, 2017 · Fundamentals

Understanding the final Keyword in Java: Variables, Methods, and Classes

This article explains Java's final keyword, covering its use with classes, methods, and variables, demonstrates how to declare final members, shows code examples of final variables, methods, and classes, and discusses the performance, thread‑safety, and immutability benefits of using final in Java applications.

finalkeywordthread-safety
0 likes · 7 min read
Understanding the final Keyword in Java: Variables, Methods, and Classes