1.给出下列【代码】注释标注的代码的输出结果。
public class Test {
public static void main (String args[ ]) {
char ch=(char)(65536+65)
System.out.printIn (ch);//【代码】
}
}
2.给出下列【代码】注释标注的代码的输出结果。
public class Test {
public static void main (String args[ ]) {
boolean boo =false;
int x=-1;
boo =\ (x=10)>9)||((x=100)>99);
System.out.printIn(boo+"hello"+x); //【代码】
}
输出结果:_
public static void main (String args[ ]) {
char ch=(char)(65536+65);
System.out.println (ch);// 输出:A
}
public static void main (String args[ ]) {
boolean boo =false;
int x=-1;
boo = ((x=10)>9)||((x=100)>99);
System.out.println(boo+"hello"+x); //输出:truehello10
}
A
truehello10
什么意思?这种题你不会自己跑一下代码吗?