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

Which can be used to encode charS for output?()

A、 Java.io.OutputStream.

B、 Java.io.OutputStreamWriter.

C、 Java.io.EncodeOutputStream.

D、 Java.io.EncodeWriter.

E、 Java.io.BufferedOutputStream.

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

相关问题推荐

  • A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()

    A、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java

    B、put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jar

    C、Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jar

    D、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java

    E、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jar

    F、put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar

  • Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work?   CODE BLOCK a:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   Thread t = new Thread(r);   t.start();   CODE BLOCK b:   Thread t = new Thread() {  public void start() {   Work.doIt();  }  };   t.start();   CODE BLOCK c:   Runnable r = new Runnable() {   public void run() {   Work.doIt();   }   };   r.start();  CODE BLOCK d:   Thread t = new Thread(new Work());   t.start();   CODE BLOCK e:   Runnable t = new Runnable() {   public void run() {   Work.doIt();   }   };   t.run();  

    A、Code block a.

    B、Code block B.

    C、Code block c.

    D、Code block d.

    E、Code block e.

  • What is the result?()

    A、 Cat

    B、 Dog

    C、 Compilation fails.

    D、 The code runs with no output.

    E、 An exception is thrown at runtime.

  • Which two are equivalent?()   

    A

     3/2

    B

     3<2

    C

     3*4

    D

     3<<2

    E

     3*2^2

    F

     3<<<2

  • public class Foo implements Runnable (  public void run (Thread t) {   system.out.printIn(“Running.”);   }   public static void main (String args) {   new thread (new Foo()).start();   }   )   What is the result?()  

    A、 An exception is thrown.

    B、 The program exists without printing anything.

    C、 An error at line 1 causes compilation to fail.

    D、 An error at line 6 causes the compilation to fail.

    E、 “Running” is printed and the program exits.

联系客服 会员中心
TOP