Sachintha Punchihewa·Dec 16, 2021Methods Common to All ObjectsAlthough an object is a concrete class, it is designed primarily for an extension. All of its nonfinal methods like equals, hashCode…
Sachintha Punchihewa·Oct 27, 2021How a HashSet checks for duplicates: hashCode() and equals()When you put an object into a HashSet, it uses the object’s hashcode value to determine where to put the object in the Set. But it also…
Sachintha Punchihewa·Oct 25, 2021Serialization — I/Oif you want your class to be serializable, implement Serializable interfae