public class Test
{
public static void main( String [] args )
{
int i = 4;
int j = 9;
int x = 4;
int y = 9;if( ( i++ > 4 ) && ( j++ > 9 ) )
System.out.println( "first" );if( ( i < 4 ) || ( j > 9 ) )
System.out.println( "second" );if( ( x++ > 4 ) & ( y++ > 9 ) )
System.out.println( "third" );if( ( x < 4 ) | ( y > 9 ) )
System.out.println( "fourth" );
}
}
fourth
问题补充
我想知道++运算符和大于小于运算符的优先级。不明白为什么结果是这样?