Sobes.tech

public class Singleton { private static final Singleton instance; public Singleton() { } public Singleton getInstance() { if (instance != null) { synchronized (instance) { if (instance == null) { instance = new Singleton(); } } } return instance; } }

129

Πώς είναι δομημένο εσωτερικά ένα HashMap; Τι είναι ένα bucket, πώς γίνεται η εισαγωγή, τι είναι μια σύγκρουση, τι είναι το rehashing;

123
/2