MagicLen · https://magiclen.org
筆者自高中二年級之後就開始在學承電腦上 Java 課程,因為自己本身有在使用 Linux,所以非常了解 Java 語言跨平台的好處,自從接觸 Java 程式語言之後就愛上了它,之後還陸續買了許多本 Java 的書籍。後來拿到了 TQC+ 的 Java 程式設計專業人員認證,覺得應該要再來拿拿 Oracle 的原廠認證,好跟國際接軌,便報考了 Java 8 的 Oracle Certified As...
What is the result?
A. {1007 = A, 1002 = C, 1001 = B, 1003 = B}
B. {1001 = B, 1002 = C, 1003 = B, 1007 = A}
C. {1002 = C, 1003 = B, 1007 = A}
D. {1007 = A, 1001 = B, 1003 = B, 1002 = C}
Which code fragment should be inserted at line n1 to enable the code to print Rat Cat Lion Tiger?
A. Arrays.sort(strArray, CheckClass::checkValue);
B. Arrays.sort(strArray, (CheckClass::new) ::checkV...
What is the result?
A. A file with the name log.txt is created in the /data directory and the content of the /data/december/log.txt file is copied to it.
B. The program executes successfully and does...
Which modification enables the code fragment to print Happy Journey!?
A. Replace line n1 with public void ride() throws FuelNotAvailException {
B. Replace line n1 with protected void ride() throws...
What is the result?
A.
/app/sys/log
/readme/server/exe
B.
/app/log/sys
/server/exe/readme
C.
/app/./sys/log
/readme
D.
/app/./sys/log
/server/exe/readme
What is the result?
A. [A Guide to Java Tour:3.0, Beginning with Java:2.0]
B. [Beginning with Java:2.0, A Guide to Java Tour:3.0]
C. A compilation error occurs because the Book class does not overrid...
What is the result?
A. 0
B. 2
C. 3
D. 4
E. 5
Which statement is true?
A. Moveable can be used as below:
Moveable<Integer> animal = n -> System.out.println("Running" + n);
animal.run(100);
animal.walk(20);
B. Moveable can be used as below:
Movea...
What is the result of running the code with the -ea option?
A. -10
B. 0
C. An AssertionError is thrown.
D. A compilation error occurs.