1
What is the output of this program?
class Overload { int x; int y; void add(int a) { x = a + 1; } void show() { System.out.println(x); } } public static void main(String args[]) { Overload obj = new Overload(); int a = 0; obj.add(6); obj.show(); } }
5
6
7
8