[OCAJP][OCPJP]foreach 與陣列物件參考
What is the result? A. 2 4 6 8 B. 2 4 6 8 9 C. 1 3 5 7 D. 1 3 5 7 9
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
MagicLen 的主要文章,分成「科學與科技」和「社會與生活」兩大類。前者以程式設計、作業系統、網路與軟硬體的教學和心得為主,後者包含語言學習、創作、旅遊、開箱與各種生活主題,另外還有本站公告。
共 1660 篇文章
What is the result? A. 2 4 6 8 B. 2 4 6 8 9 C. 1 3 5 7 D. 1 3 5 7 9
What is the result? A. Hello Java! 8 Hello Java! 6 Hello Java! 4 B. Hello Java! 8 Hello Java! 6 C. Hello Java! 8 D. Compilation fails
Which statement is true? A. After line 8, three objects are eligible for garbage collection B. After line 8, two objects are eligible for garbage collection C. After line 8, one object is eligible fo...
What is the result? A. 12 B. Invalid Index 12 C. Invalid Index D. Compilation fails
What is printed out when the program is excuted? A. one B. two C. three D. four
Which set of commands prints Hello Duke in the console? A. javac Greeting java Greeting Duke B. javac Greeting.java Duke java Greeting C. javac Greeting.java java Greeting Duke D. javac Greeting.java...
What is the result? A. class java.lang.String class java.lang.String class java.util.ArrayList B. class java.lang.Object class java.lang. Object class java.util.Collection C. class java.lang.StringBu...
Which two statements are true for a two-dimensional array of primitive data type? A. It cannot contain elements of different types. B. The length of each dimension must be the same. C. At the declara...
無障礙網頁的設計是讓身心障礙人士(主要是視障者跟聽障者)可以用另一種替代性的方式了解網頁中的內容,因為他們沒有辦法像一般人一樣直接瀏覽網頁就可以得到想要的訊息,必須使用電腦輔具像是閱讀機、點字觸摸顯示器、螢幕報讀軟體、語音箱、多功能轉接器和導盲鼠等等,然後身障者就能透過唸出的聲音或點字的方式知道網頁上的資訊究竟是什麼。
Which three code fragments, when replaced individually for foo, enables the program to compile? A. int i : array B. int i = 0; i < 1; C. ; ; D. ; i < 1; i++ E. i = 0; i<1;