1
Equals comparion with the same object should return false. Condition is you cannot override equals. Does anyone has any clue on how to solve this?
Write TestA class on such a way that the below program’s output should be false. NOTE: You cannot override equals method Class A{ public static void main(String args[]){ TestA testObj = new TestA(); System.out.println(testObj.equals(testObj)); }}
Answer Question
| August 23, 2012 3:28 AM
Core Java
Write TestA class on such a way that the below program’s output should be false. NOTE: You cannot override equals method Class A{ public static void main(String args[]){ TestA testObj = new TestA(); System.out.println(testObj.equals(testObj)); }}
1





