Tag Archives: equals() method

Unit 2 (Prog 3) : Test equals() method.

Testing of equals() method and overriding equals() method of Object class. // Overriding equals() method will make an object identical // to use a object as a key, one has to override equals() method of Object class   public class EqualsTest {           public static void main(String[] args) {    … Read More »

email