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

    • 題庫

    • 網(wǎng)課

    • 在線???/h3>

    • 桌面端

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

    package foo; 
    import java.util.Vector;
    private class MyVector extends Vector { 
    int i = 1; 
    public MyVector() { 
    i = 2;
    }
    } 
    public class MyNewVector extends MyVector { 
    public MyNewVector() { 
    i = 4; 
    } 
    public static void main(String args[]) { 
    MyVector v = new MyNewVector(); 
    } 
    } 
    What is the result?()

    A. Compilation succeeds.
    B. Compilation fails because of an error at line 5.
    C. Compilation fails because of an error at line 6.
    D. Compilation fails because of an error at line 14.
    E. Compilation fails because of an error at line 17.

    題目列表

    你可能感興趣的試題

    • 單項(xiàng)選擇題

      Which statement is true about assertion in the Java programming language?()  

      A. Assertion expressions should not contain side effects.
      B. Assertion expression values can be any primitive type.
      C. Assertion should be used for enforcing preconditions on public methods.
      D. An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

    • 單項(xiàng)選擇題

      boolean bool = true; if(bool = false) { System.out.println(“a”); } else if (bool) { System.out.println(“c”); } else if (!bool) { System.out.println(“c”); } else { System.out.println(“d”); } What is the result?()  

      A. a
      B. b
      C. c
      D. d
      E. Compilation fails.

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

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

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

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

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

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

    手机毛片在线
                • <ul id="au60g"><pre id="au60g"></pre></ul>