What will be the output of the following program?
class Operations
{
int v;
public static void main(String[] args)
{
new Operations().add(5).print().sub(7).print().multiply(3).add(3).print().sub(4).print();
}
Operations add(int i) { v+=i; return this; }
Operations sub(int i) { v=-i; return this; }
Operations multiply(int j) { v*=j; return this; }
Operations print() { System.out.println("v = " + v); return this; }
}