Given the command line java Pass2 and:<br /> public class Pass2{<br /> public void main(String[]args){<br /> int x=6;<br /> Pass2 p=new Pass2();<br /> p.doStuff(x);<br /> System.out.print("mainx="+x);<br /> }<br /> void doStuff(intx){<br /> System.out.print("doStuffx="+x++);<br /> }<br /> }<br /> What is the result?()
A、Compilation fails.
B、An exception is thrown at runtime.
C、doStuffx=6 main x=6
D、doStuffx=6 mainx =7
E、doStuffx=7 mainx =6
F、doStuffx=7 mainx =7