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

Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()

A、 Compilation fails.

B、 Nothing is added to the file system.

C、 Only a new file is created on the file system.

D、 Only a new directory is created on the file system.

E、 Both a new file and a new directory are created on the file system.

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

相关问题推荐

  • Which statements about Java code security are true?() 

    A

     The bytecode verifier loads all classes needed for the execution of a program.

    B

     Executing code is performed by the runtime interpreter.

    C

     At runtime the bytecodes are loaded, checked and run in an interpreter.

    D

     The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.

  • 11. class Payload {  12. private int weight;  13. public Payload(int wt) { weight = wt; }  13. public void setWeight(mt w) { weight = w; }  15. public String toString { return Integer.toString(weight); }  16. }  17.  18. public class TestPayload {  19. static void changePayload(Payload p) { 20. /* insert code here */ 21. }  22.  23. public static void main(String[] args) {  24. Payload p = new Payload();  25. p.setWeight(1024);  26. changePayload(p);  27. System.out.println(”The value of p is “+ p);  28. }  29. }  Which statement, placed at line 20, causes the code to print “The value of p is 420.”?() 

    A、 p.setWeight(420);

    B、 p.changePayload(420);

    C、 p = new Payload(420);

    D、 Payload.setWeight(420);

    E、 p = Payload.setWeight(420);

    F、 p = new Payload(); p.setWeight(420);

  • What are four valid examples of polymorphic method calls?()

    A

    x.a2();

    B

    z.a2();

    C

    z.c1();

    D

    z.a1();

    E

    y.c1();

    F

    x.a1();

  • What is the result?()

    A、 Compilation of class A fails.

    B、 Line 28 prints the value 3 to System.out.

    C、 Line 28 prints the value 1 to System.out.

    D、 A runtime error occurs when line 25 executes.

    E、 Compilation fails because of an error on line 28.

  • 10. interface Foo { int bar(); }  11. public class Sprite {  12. public int fubar( Foo foo) { return foo.bar(); }  13. public void testFoo() {  14. fubar(  15. // insert code here  16.);  17. }  18. }  Which code, inserted at line 15, allows the class Sprite to compile?() 

    A、 Foo { public int bar() { return 1; } }

    B、 new Foo { public int bar() { return 1; } }

    C、 newFoo() { public int bar(){return 1; } }

    D、 new class Foo { public int bar() { return 1; } }

联系客服 会员中心
TOP