1
Java / Re: Java quiz series
« on: December 04, 2013, 02:36:49 pm »
It outputs -1
You are calling constructor before you assign the value to the static variable. So in the constructor code, there no value of static variable.
You are calling constructor before you assign the value to the static variable. So in the constructor code, there no value of static variable.