HeeahIterate a Map using keySet, entrySet, values.Let’s see how to iterate through a Map using keySet(), entrySet(), and values().Jan 16Jan 16
HeeahCollections in JavaThe Collection in Java is a group of multiple objects put together into a single unit. The Collection interface (java.util.Collection) and…Dec 31, 2023Dec 31, 2023
HeeahEquals method vs == operatorBoth equals() method and the == operator are used to compare two objects in Java. == is an operator and equals() is method. But == operator…Dec 30, 2023Dec 30, 2023
HeeahWhy String Is Immutable in Java?A String in Java that is specified as immutable, as the content shared storage in a single pool to minimize creating a copy of the same…Dec 30, 20231Dec 30, 20231
HeeahWhat are the Object class methodsObject class is present in java.lang package. Every class in Java is directly or indirectly derived from the Object class.Dec 30, 2023Dec 30, 2023
HeeahWhy multiple inheritance is not supported in JavaTo reduce the complexity and simplify the language, multiple inheritances is not supported in java.Dec 30, 2023Dec 30, 2023
HeeahAbstract class vs InterfaceAbstraction is one of the Object-Oriented programming key features. It allows us to hide the implementation complexities just by providing…Dec 30, 2023Dec 30, 2023
HeeahConstructors in JavaIt’s used to initialize objects. The constructor is called when an abject of a class is created using a new() keyword, It can be used to…Dec 30, 2023Dec 30, 2023