Which of the following options provides the output of this program, when executed? class Sample5 { private int x, y; public sample5(int x, int y) { x = x; } public String toString() { return "[" + x +" ," + y +" ]"; } public static void main(String []args) { sample5 point = new sample5(10, 20); System.out.println(point); } }
Reveal answer
Fill a bubble to check yourself