一个小题目大家看看
public class Untitled1 {
private static int j = 0;
private static boolean methodB(int k)
{
j=+k;
return true;
}
private static void methodA(int i)
{
boolean b;
b = i<10||methodB(8);
b = i<10|methodB(4);
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
methodA(0);
System.out.println(j);
}
}
看看打印出来是几!