equals and hashCode in Java
equals method is used to check the equality of two objects based on it’s contents. equals versus == If two[…]
Read moreAmplify your java knowledge with javagyansite
equals method is used to check the equality of two objects based on it’s contents. equals versus == If two[…]
Read moreIn this article, we’ll look at the complexities of multiple inheritance in Java, the infamous “diamond problem,” and the various[…]
Read moreLinkedHashMap implements Map and extends HashMap.Please visit HashMap for understanding the internal working of HashMap before you read further so that it becomes[…]
Read moreClassNotFoundException NoClassDefFoundError Exception or Error? It is of type java.lang.Exception.It is a Checked Exception. It is of type java.lang.Error. When[…]
Read moreException handling in Java is a mechanism that allows developers to handle runtime errors, unexpected events, and exceptional situations that[…]
Read moreBefore we jump into TreeMap, let us first look into Tree Data Structure. The basic building block for the tree[…]
Read moreComparable Comparator What is it? Here the Object compares itself with another Object of same type.For example: An Employee comparing[…]
Read moreCopyOnWriteArrayList(Introduced in JDK 1.5) SynchronizedList Creation List list = new CopyOnWriteArrayList(); List list = new ArrayList(); List syncList = Collections.synchronizedList(list);[…]
Read morefail-fast iterator fail-safe iterator Is Modification of underlying Collection Allowed? NO. It throws ConcurrentModificationException if the underlying collection is structurally[…]
Read moreIn this Article, we will explore HashMap vs Hashtable vs SynchronizedHashMap vs ConcurrentHashMap. HashMap vs Hashtable vs SynchronizedHashMap vs ConcurrentHashMap:[…]
Read more