先来看下面这三段代码: //Example1: public class Example1 { static void check(int a) { a++; } public static void main(String[]args) { int x=10; check(x); System.out.println(“Example1.x=”+x);} } //Example2: public class Example2 { static void check(StringBuffer o…