Suppose there is a Car object whose constructor takes the brand (String) and year (int) parameters. If we create two new objects "Car c1 = new Car("Toyota", 2005);" and "Car c2 = new Car("Toyota", 2005);" what will be the output of "System.out.println(c1.equals(c2));"?




© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.