Java - Constructors
What will be the output of the following Java code?
class Example {
int val = 7;
void display(int val) {
System.out.println(val);
System.out.println(this.val);
}
}
public class Main {
public static void main(String[] args) {
Example e = new Example();
e.display(15);
}
}