[OCAJP] 數值基本資料型態的轉換
Which three lines fail to compile? A. Line 7 B. Line 8 C. Line 9 D. Line 10 E. Line 11 F. Line 12
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
程式設計的教學與經驗分享,涵蓋 Rust、Java、JavaScript、Go、C/C++ 等程式語言的入門教學、範例程式與實務技巧,以及演算法、App 開發與開發工具的用法。
共 635 篇文章
Which three lines fail to compile? A. Line 7 B. Line 8 C. Line 9 D. Line 10 E. Line 11 F. Line 12
How many objects are created in the memory runtime? A. 1 B. 2 C. 3 D. 4
Which statement is true? A. Only the A.Java file compiles successfully. B. Only the B.java file compiles successfully. C. Only the C.java file compiles successfully. D. The A.Java and B.java files co...
What is the proper way to defined a method that take two int values and returns their sum as an int value? A. int sum(int first, int second) { first + second; } B. int sum(int first, second) { return...
Which code fragment, when inserted at line n1, enables the code to print Hank? A. checkAge(iList, () -> p.getAge() > 40); B. checkAge(iList, Person p -> p.getAge() > 40); C. checkAge(iList, p -> p.ge...
What is the result? A. 011 B. 012 C. 123 D. 000
What is the result? A. int main 1 B. Object main 1 C. String main 1 D. Compilation fails E. An exception is thrown at runtime
Which statement best describes encapsulation? A. Encapsulation ensures that classes can be designed so that only certain fields and methods of an object are accessible from other objects. B. Encapsul...
What is the result? A. 1 B. 2 C. 4 D. 0
Which line of code initializes a student instance? A. Student student1; B. Student student1 = Student.new(); C. Student student1 = new Student(); D. Student student1 = Student();