运算符的顺序

来源:互联网 发布:郴州淘宝模特 编辑:程序博客网 时间:2024/06/06 20:03
package test;public class Test {public static void main(String[] args) {// TODO Auto-generated method stubint s=69;int n = s > -1 ? 6 :4 ;System.out.println(n);}}
输出结果为6
0 0