[OCAJP] 布尔运算
What is the result? A. log3:false log4:true B. log3:true log4:true C. log3:true log4:false D. log3:false log4:false
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。
共 403 篇文章
What is the result? A. log3:false log4:true B. log3:true log4:true C. log3:true log4:false D. log3:false log4:false
Which line of codes prints the highest number? A. Line 21 B. Line 22 C. Line 23 D. Line 24 E. Line 25
Which of the following will create instance of Runnable type? A. Runnable run = () -> {System.out.println("Run");} B. Runnable run = () -> System.out.println("Run"); C. Runnable run = () > System.out...
What is the result? A. A B. B C. Either A or B D. A B E. A compile time error occurs at line n1
What is the result? A. sc: class Object asc: class AnotherSampleClass B. sc: class SampleClass asc: class AnotherSampleClass C. sc: class AnotherSampleClass asc: class SampleClass D. sc: class Anothe...
What is the result? A. Lazy lion is jumping B. Lion is always jumping C. Crazy elephant is jumping D. Elephant is always jumping E. Compilation fails
What is the result? A. p1.Test.class 0.0 B <the summary address refrenced by ref> 0.000000 C. null 0.0 D. Compilation fails E. A NullPointerException is thrown at runtime
What is the result? A. 100 210 B. Compilation fails due to an error in line n1 C. Compilation fails due to an error at line n2 D. Compilation fails due to an error at line n3
Which code fragment, when inserted at line n1, enables the App class to print Equal? A. String str3 = str2; if (str1 == str3) B. if (str1.equalsIgnoreCase(str2)) C. String str3 = str2; if (str1.equal...
What is the result? A. 10 10 B. 8 9 C. 9 8 D. 7 10