Operators
© examsiri.com
Question : 3 of 23
Marks:
+1,
-0
Given:
What is the result?
1. public class Pass {
2.   public static void main(String [] args) {
3.    int x = 5;
4.    Pass p = new Pass();
5.    p.doStuff(x);
6.    System.out.print(" main x = " + x);
7.   }
8.
9.   void doStuff(int x) {
10.    System.out.print(" doStuff x = " + x++);
11.   }
12. }What is the result?
Go to Question: