易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

What will be the appearance of an applet with the following init() method?   public void init() {   add(new Button("hello"));  }  

A、Nothing appears in the applet.

B、A button will cover the whole area of the applet.

C、A button will appear in the top left corner of the applet.

D、A button will appear, centered in the top region of the applet.

E、A button will appear in the center of the applet.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?() 

    A、 java Commander

    B、 java com. sim. sjcp.Commander

    C、 java com/sun/sjcp/Commander

    D、 java -cp com.sun.sjcp Commander

    E、 java -cp com/sun/sjcp Commander

  • What is the result?()

    A、 TestA

    B、 TestB

    C、 Compilation fails.

    D、 An exception is thrown at runtime.

  • Which two can directly cause a thread to stop executing?()  

    A

     Exiting from a synchronized block.

    B

     Calling the wait method on an object.

    C

     Calling the notify method on an object.

    D

     Calling the notifyAll method on an object.

    E

     Calling the setPriority method on a thread object.

  • 1. public class OuterClass {  2. private double d1 = 1.0;  3. // insert code here  4. }  Which two are valid if inserted at line 3?()  

    A

     static class InnerOne { public double methoda() { return d1; } }

    B

     static class InnerOne { static double methoda() { return d1; } }

    C

     private class InnerOne { public double methoda() { return d1; } }

    D

     protected class InnerOne { static double methoda() { return d1; } }

    E

     public abstract class InnerOne { public abstract double methoda(); }

  • 以下代码将打印出()。

    A、 com. Jd

    B、 com/jd/MyClass.class

    C、 ///////MyClass.class

    D、 com.jd.MyClass

联系客服 会员中心
TOP