聯(lián)系客服微信掃一掃關(guān)注公眾號(hào)后聯(lián)系客服
            掃碼練習(xí)微信掃碼免費(fèi)搜題
            • 首頁

            • 題庫

            • 網(wǎng)課

            • 在線???/h3>

            • 桌面端

            登錄
            • 搜標(biāo)題
            • 搜題干
            • 搜選項(xiàng)
            單項(xiàng)選擇題

            A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways: 
            logIt(”log message 1 “); 
            logIt(”log message2”,”log message3”); 
            logIt(”log message4”, “log message5”, “log message6); 
            Which declaration satisfies this requirement?()

            A. public void logIt(String * msgs)
            B. public void logIt(String [] msgs)
            C. public void logIt(String... msgs)
            D. public void logIt(String msg1, String msg2, String msg3)

            題目列表

            你可能感興趣的試題

            • 多項(xiàng)選擇題

              10. class Foo { 
              11. static void alpha() { /* more code here */ } 
              12. void beta() { /* more code here */ } 
              13. } 
              Which two are true?()

              A. Foo.beta() is a valid invocation of beta().
              B. Foo.alpha() is a valid invocation of alpha().
              C. Method beta() can directly call method alpha().
              D. Method alpha() can directly call method beta().

            • 單項(xiàng)選擇題

              11. public static void main(String[] args) { 
              12. Object obj =new int[] { 1,2,3 }; 
              13. int[] someArray = (int[])obj; 
              14. for (int i: someArray) System.out.print(i +“ “) 
              15. } 
              What is the result? ()

              A. 1 2 3
              B. Compilation fails because of an error in line 12.
              C. Compilation fails because of an error in line 13.
              D. Compilation fails because of an error in line 14.
              E. A ClassCastException is thrown at runtime.

            掃碼聯(lián)系掃碼聯(lián)系在線客服
            反饋使用問題
            掃碼練習(xí)掃碼使用找答案小程序
            手機(jī)搜題/刷題/上網(wǎng)課

            版權(quán)所有?考試資料網(wǎng)(ppkao.com) 長沙求知信息技術(shù)有限公司 All Rights Reserved

            湘公網(wǎng)安備 43010202000353號(hào)備案號(hào): 湘ICP備14005140號(hào)-2

            經(jīng)營許可證號(hào) : 湘B2-20140064

            • 聯(lián)系客服
            • 小程序
            • 桌面端下載
            • 回到頂部

            感谢您访问我们的网站,您可能还对以下资源感兴趣:

            手机毛片在线