約243件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1か月以内
  • 2026/10/15 -Choose the holder approach when you want a regular class with lazy, thread-safe initialization. Choose an enum when its type constraints fit and the built ...

    2026/10/23 -Lazy or Eager Initialization: An Instance can be created at class load time (eager) or when first needed (lazy). Thread Safety: Can be designed to work ...

    5日前 -Separate one-time construction from concurrent state safety, and discuss lazy initialization, atomic operations, volatile, and the effect of shared instances on ...

    2026/10/28 -Lazy Initialization. Singleton pattern implementations often use lazy initialization to delay instance creation until the first time it is actually needed. To ...

    2026/10/13 -In all versions of Java, the idiom enables a safe, highly concurrent lazy initialization of static fields with good performance. ... While the implementation is ...

    2026/10/28 -Learn how Java Singleton works with enum and holder implementations, runnable code, thread-safety limits, serialization, and practical alternatives.

    5日前 -Whereas the singleton allows only one instance of a class to be created, the multiton pattern allows for the controlled creation of multiple instances, which it ...

    22時間前 -Lazy Initialization: The instance is created only when needed, optimizing resource usage. Use Cases: Common applications include database connections, hardware ...

    2026/10/25 -How would you implement the Singleton pattern in Java? Compare eager initialization, lazy initialization, enum-based Singleton, and thread-safe approaches.

    1日前 -• Failed initialization: Permanently breaks the class (NoClassDefFoundError). • Holder idiom: Inner static class for thread-safe lazy singleton without locks.