Which two valid declarations of a char?()   

题目
多选题
Which two valid declarations of a char?()
A

Char ch = “a”;

B

Char ch = ‘/’ ‘;

C

Char ch = ‘cafe’;

D

Char ch = “cafe”;

E

Char ch = ‘/ucafe’;

F

Char ch = ‘/u10100’;

G

Char ch = (char) true;

参考答案和解析
正确答案: G,B
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two are valid declarations within an interface definition?() 

  • A、 void methoda();
  • B、 public double methoda();
  • C、 public final double methoda();
  • D、 static void methoda(double d1);
  • E、 protected void methoda(double d1);

正确答案:A,B

第2题:

Which the three are valid declarations of a float?()

  • A、 float foo = -1;
  • B、 float foo = 1.0;
  • C、 float foo = 42el:
  • D、 float foo = 2.02f:
  • E、 float foo = 3.03d:

正确答案:A,D,F

第3题:

Which two valid declarations of a char? ()

  • A、 Char ch = “a”;
  • B、 Char ch = ‘“‘ ‘;
  • C、 Char ch = ‘cafe‘;
  • D、 Char ch = “cafe”;
  • E、 Char ch = ‘“ucafe‘;
  • F、 Char ch = ‘“u10100‘;
  • G、 Char ch = (char) true;

正确答案:B,E

第4题:

Which two options are valid WAN connectivity methods?()

  • A、PPP
  • B、WAP
  • C、DSL
  • D、Ethernet
  • E、L2TPv3

正确答案:A,C

第5题:

Which three are valid declarations of a float? () 

  • A、 Float foo = -1;
  • B、 Float foo = 1.0;
  • C、 Float foo = 42e1;
  • D、 Float foo = 2.02f;
  • E、 Float foo = 3.03d;
  • F、 Float foo = 0x0123;

正确答案:A,D,F

第6题:

Which two declarations prevent the overriding of a method? ()

  • A、 Final void methoda(){}
  • B、 Void final methoda(){}
  • C、 Static void methoda(){}
  • D、 Static final void methoda(){}
  • E、 Final abstract void methoda(){}

正确答案:A,D

第7题:

Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()

  • A、String s = c.readLine();
  • B、char[ ] c = c.readLine();
  • C、String s = c.readConsole();
  • D、char[ ] c = c.readConsole();
  • E、String s = c.readLine("%s", "name ");
  • F、char[ ] c = c.readLine("%s", "name ");

正确答案:A,E

第8题:

Which two are valid locking levels that are used by transactions in an Oracle database?()

  • A、row level
  • B、block level
  • C、object level
  • D、schema level
  • E、database level

正确答案:A,C

第9题:

Which two multicast modes are valid options for use with Ethernet bridging on a mesh AP?()

  • A、mesh bridge in
  • B、regular
  • C、bi-directional bridge
  • D、in
  • E、out

正确答案:B,D

第10题:

Which two are valid declarations of a float?()

  • A、 float f = 1F;
  • B、 float f = 1.0.;
  • C、 float f = ‘1’;
  • D、 float f = “1”;
  • E、 float f = 1.0d;

正确答案:A,C

更多相关问题