[OCPJP] 串流與 Lambda 的精簡應用 2
What is the result? A. 246 B. The code produces no output. C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
MagicLen 的主要文章,分成「科學與科技」和「社會與生活」兩大類。前者以程式設計、作業系統、網路與軟硬體的教學和心得為主,後者包含語言學習、創作、旅遊、開箱與各種生活主題,另外還有本站公告。
共 1660 篇文章
What is the result? A. 246 B. The code produces no output. C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
What is the result? A. 20 B. 20.5 C. A compilation error occurs at line n1. D. A compilation error occurs at line n2.
What is the result? A. ur :: va B. ueJa C. The program prints nothing. D. A compilation error occurs at line n1.
Which code fragment must be inserted at line n1 to enable the code to print the maximum number in the nums list? A. nums.stream().max(Comparator.comparing(a -> a)).get() B. nums.stream().max(Integer ...
Which two code blocks correctly initialize a Locale variable? A. Locale loc1 = "UK"; B. Locale loc2 = Locale.getInstance("ru"); C. Locale loc3 = Locale.getLocaleFactory("RU"); D. Locale loc4 = Locale...
What is the output? A. {EUROPE = [Italy, Germany], ASIA = [Japan]} B. {ASIA = [Japan], EUROPE = [Italy, Germany]} C. {EUROPE = [Germany, Italy], ASIA = [Japan]} D. {EUROPE = [Germany], EUROPE = [Ital...
The required database driver is configured in the classpath. The appropriate database is accessible with the dbURL, userName, and passWord exists. The SQL query is valid. What is the result? A. An e...
Google 表單是 Google 雲端硬碟服務裡其中一項非常實用的功能,因此自推出以來受到廣大使用者的喜愛,並且被廣泛的運用在各類的問卷中。不過使用久了之後,總希望它能有更多功能來滿足我們的需求,於是有人開始想到:「有沒有可能設定一個期限,時間到就關閉表單? 或是填寫人數到達一個數量之後,就不再開放給人填寫呢?」事實上,Google 表單還真的可以幫你達成,只是它必須額外安裝外掛程式(formL...
Which option fails? A. Foo<String, Integer> mark = new Foo<String, Integer> ("Steve", 100); B. Foo<String, String> pair = Foo.<String>twice ("Hello World!"); C. Foo<?, ?> percentage = new Foo<?, ?>(9...
Which statement is true? A. The green.txt file content is replaced by the yellow.txt file content and the yellow.txt file is deleted. B. The yellow.txt file content is replaced by the green.txt file ...