The following println statement (the entire line) is equivalent to what? Point p1 = new Point(); ...
Question:
The following println statement (the entire line) is equivalent to what?
Point p1 = new Point();
...
System.out.println(p1);
a. System.out.println(toString(p1));
b. p1.toString();
c. System.out.println(p1.toString());
d. System.out.println(p1.string());
e. System.out.println(Point.toString());
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: