网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

1.public class test (  2.public static void main (String args[])    {  3.int  i = 0xFFFFFFF1;  4.int  j = ~i;  5.    6.}  7.)    What is the decimal value of j at line 5?()  

  • A、 0
  • B、 1
  • C、 14
  • D、 –15
  • E、 An error at line 3 causes compilation to fail.
  • F、 An error at line 4 causes compilation to fail.

参考答案

更多 “ 1.public class test (  2.public static void main (String args[])    {  3.int  i = 0xFFFFFFF1;  4.int  j = ~i;  5.    6.}  7.)    What is the decimal value of j at line 5?()  A、 0B、 1C、 14D、 –15E、 An error at line 3 causes compilation to fail.F、 An error at line 4 causes compilation to fail.” 相关考题
考题 1.public class GC{2.private Objec to;3.private void doSomethingElse(Object obj){o=obj;}4.public void doSomething(){5.Object o=new Object();6.doSomethingElse(o);7.o=new Object();8.doSomethingElse(null);9.o=null;10.}11.}When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()A.Line5B.Line6C.Line7D.Line8E.Line9F.Line10

考题 下面程序输出的结果为 #include"iostream.h" class A { public: A(){cout<<"CLASSA"<<endl;} ~A() {} }; class B:public A { public: B(){cout<<"CLASSB"<<endl;} ~B() {} }; void main() { A * p; p=new B; B *q; q=new B; }A.CLASS A CLASS BB.CLASS A CLASS B CLASS BC.CLASS A CLASS B CLASS A CLASS BD.CLASS A CLASS B CLASS B CLASS B

考题 下面程序输出的结果为#include"iostream.h"class A{public:A( ){cout<<"CLASS A"<<endl;}~A( ){}};class B:public A{public:B( ){cout<<"CLASS B"<<endl;}~B( ){}};void main( ){A*p;p=new B;B *q;q=new B;}A.CLASS A CLASS BB.CLASS A CLASS B CLASS BC.CLASS A CLASS B CLASS A CLASS BD.CLASS A CLASS B CLASS B CLASS B

考题 Class a = new Class(); Class b = new Class();if(a == b) returns true or false, why?

考题 The IP address 192.168.100.1 belongs to which class of IP address space?() A. Class AB. Class BC. Class CD. Class D

考题 下面程序输出的结果为 #include"iostream.h” class A { public: A(){cout<<"CLASSA"<<endl;} ~A() {} }; class B:public A { public: B(){cout<<"CLASS B"<<endl;} ~B(){} }; void main() { A*p; p=new B;A.CLASS A CLASS B CLASS B CLASS BB.CLASS A CLASS B CLASS A CLASS BC.CLASS A CLASS B CLASS BD.CLASS A CLASS B

考题 下面程序输出的结果为( )。 #inClUde”iostream.h” Class A {public: A(){cout<<“CLASS A”<<endl;} ~A()<)}; class B:public A {public: B(){cout<<”CLASSB”<<endl;} ~B(){}}; void main() {A*p; p=new B; B *q; q=new B;}A.CLASS A CLASS BB.CLASS A CLASS B CLASS BC.CLASS A ClASS BD.CLASS A CLASS B CLASS A CLASS B CLASS B CLASS B

考题 对于下面( )类定义,可以通过“newJ_Class()”生成类J_Class的实例对象。A、publicclassJ_Class{publicJ_Class(void){}}B、publicclassJ_Class{}C、publicclassJ_Class{publicJ_Class(Strings){}}D、publicclassJ_Class{publicvoidJ_Class(){}publicJ_Class(Strings){}

考题 Which statement is NOT true concerning the stowage of class 1 explosives ________.A.Class 1.1 explosives may be stowed with class 9 dangerous substancesB.Class 1.4 explosives must be“separated from”a stow of class 5.1 oxidizing materialsC.Class 1.4 explosives may not be stowed in the same hold with class 6.1 poisonsD.Class 1.4 explosives must be“separated from”a stow of class 8 corrosive materials

考题 GPRS手机类型可分为()。A、CLASS AB、CLASS BC、CLASS CD、CLASS D

考题 Which class of Cisco access points operate under IEEE 802.3af power?()A、Class AB、Class 1C、Class 2D、Class 3E、Class 4

考题 In which two cases does the compiler supply a default constructor for class A?()  A、 class A{}B、 class A { public A(){} }C、 class A { public A(int x){} }D、 class Z {} class A extends Z { void A(){} }

考题 Which declaration prevents creating a subclass of an outer class?()A、 Static class FooBar{}B、 Private class FooBar{}C、 Abstract public class FooBar{}D、 Final public class FooBar{}E、 Final abstract class FooBar{}

考题 在MCDU电子状态页报告里能查看故障()A、Class1Class3B、Class2Class3C、Class1Class2D、Class1,Class2Class3

考题 根据栅格系统的标准用法,错误的是()A、div class="container"brdiv class="row" B、div class="row"brdiv class="col-md-1" C、div class="row"brdiv class="container" D、div class="col-md-1"brdiv class= "row"

考题 关于嵌套列的用法,错误的是()A、div class=“row”brdiv class=“col-sm-1”B、div class=“col-sm-1”brdiv class=“row”br C、div class=“row”brdiv class=“container”brdiv class=“col-xs-1”br D、div class=“container”brdiv class=“row”brdiv class=“col-xs-1”

考题 Which of the following class addresses is reserved for multicast?()A、 Class AB、 Class BC、 Class CD、 Class D

考题 Which of the following class networks contains 65,534 hosts?()A、Class AB、Class BC、Class CD、Class D

考题 1.public class GC{ 2.private Objec to; 3.private void doSomethingElse(Object obj){o=obj;} 4.public void doSomething(){ 5.Object o=new Object(); 6.doSomethingElse(o); 7.o=new Object(); 8.doSomethingElse(null); 9.o=null; 10.} 11.} When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()A、Line5B、Line6C、Line7D、Line8E、Line9F、Line10

考题 What produces a compiler error?()  A、 class A { public A(int x) {} }B、 class A {} class B extends A { B() {} }C、 class A { A() {} } class B { public B() {} }D、 class Z { public Z(int) {} } class A extends Z {}

考题 1.public class Test {  2.public static void main (String args[]) {  3.class Foo {  4.public int i = 3;  5.}  6.Object o = (Object) new Foo();  7.Foo foo = (Foo)o;  8.System.out.printIn(foo. i); 9. }  10.}   What is the result?()  A、 Compilation will fail.B、 Compilation will succeed and the program will print “3”C、 Compilation will succeed but the program will throw a ClassCastException at line 6.D、 Compilation will succeed but the program will throw a ClassCastException at line 7.

考题 单选题1.public class test (  2.public static void main (String args[])    {  3.int  i = 0xFFFFFFF1;  4.int  j = ~i;  5.    6.}  7.)    What is the decimal value of j at line 5?()A  0B  1C  14D  –15E  An error at line 3 causes compilation to fail.F  An error at line 4 causes compilation to fail.

考题 单选题1.public class GC{ 2.private Objec to; 3.private void doSomethingElse(Object obj){o=obj;} 4.public void doSomething(){ 5.Object o=new Object(); 6.doSomethingElse(o); 7.o=new Object(); 8.doSomethingElse(null); 9.o=null; 10.} 11.} When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()A Line5B Line6C Line7D Line8E Line9F Line10

考题 单选题1.public classA{ 2.public String doit(intx,inty){ 3.return"a"; 4.} 5. 6.public String doit(int...vals){ 7.return"b"; 8.} 9.} And: 25.A a=new A(); 26.System.out.println(a.doit(4,5)); What is the result?()A Line 26 prints a to System.out.B Line 26 prints b to System.out.C An exception is thrown at line 26 at runtime.D Compilation of class A will fail due to an error in line 6.

考题 单选题What produces a compiler error?()A  class A { public A(int x) {} }B  class A {} class B extends A { B() {} }C  class A { A() {} } class B { public B() {} }D  class Z { public Z(int) {} } class A extends Z {}

考题 单选题1.public class Test{ 2.int x=12; 3.public void method(intx){ 4.x+=x; 5.System.out.println(x); 6.} 7.} Given: 34.Test t=new Test(); 35.t.method(5); What is the output from line 5 of the Test class?()A 5B 10C 12D 17E 24

考题 单选题1.public class Test {  2.public static void main (String args[]) {  3.class Foo {  4.public int i = 3;  5.}  6.Object o = (Object) new Foo();  7.Foo foo = (Foo)o;  8.System.out.printIn(foo. i); 9. }  10.}   What is the result?()A  Compilation will fail.B  Compilation will succeed and the program will print “3”C  Compilation will succeed but the program will throw a ClassCastException at line 6.D  Compilation will succeed but the program will throw a ClassCastException at line 7.