When i compare two instances in java of the same type class, with the same values of their Attributes, why i get false? I'm new with OOP and don't Understand some OOP logic.
public static void main(String[] args) {
Object o1= new Object(24,"Omar");
Object o2= new Object(24,"Omar");
System.out.println(o1.equals(o2));
}