錯誤訊號:
老虎碎碎唸:
if 後面要求是布林值 (boolean), odd 是整數。
SCJP is not only SCJP.
Given:
public class TestString1{
public static void main(String[] args){
String str = "420";
str += 42;
System.out.print(str);
}
}
What is the output?
A. 42
B. 420
C. 462
D. 42042
E. Compilation fails.
F. An exception is thrown at runtime.
TEST104/206 (2010/03)
Given:
35. String #name = "Jane Doe";
36. int $age = 24;
37. double _height = 123.5;
38. double ~temp = 37.5;
Which two statements are true? (choose two)
A. Line 35 will not compile
B. Line 36 will not compile
C. Line 37 will not compile
D. Line 38 will not compile
Copyright © 2010 SCJP 猛唬出閘
Presented by Lawyers, Webdesign Berlin, Xbox Kinect
Splashy Blogger Templates