08/05/05 14:20:00
>>548
寝るなよw
次からは助けないからな
問1)次のコードの実行結果を答えなさい。
byte a = 3;
System.out.println(a = 2);
問2)次のコードの実行結果を答えなさい。
short a = 3;
System.out.println(a == 2);
問3)次のコードの実行結果を答えなさい。
int a = 0;
if (a == 1)
System.out.print("aの値:");
System.out.println(a);
System.out.println("終了");
問4)次のコードの実行結果を答えなさい。
int a = 0;
if (a < 0)
System.out.println("case1");
else if (a > 0)
System.out.println("case2");
else
System.out.println("case3");