多选题Which declarations of identifiers are legal?()A$personsBTwoUsersC*pointDthisE_endline

题目
多选题
Which declarations of identifiers are legal?()
A

$persons

B

TwoUsers

C

*point

D

this

E

_endline

参考答案和解析
正确答案: B,A
解析: Java的标识符可以以一个Unicode字符,下滑线(_),美元符($)开始,后续字符可以是前面的符号和数字,没有长度限制,大小写敏感,不能是保留字。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which are valid identifiers?()  

  • A、_class
  • B、$value$
  • C、zer@
  • D、¥ngstr
  • E、2muchuq

正确答案:A,B,D

第2题:

When disposing of data, which of the following should be considered FIRST?()

  • A、Company policy requirements
  • B、Local legal requirements
  • C、Storage requirements
  • D、Disposal requirements

正确答案:B

第3题:

A corporation is a legal person, which means it is treated like a private person under the law.()

此题为判断题(对,错)。


正确答案:√

第4题:

Which of the following is the technology that helps organizations to reduce legal risks associated with e-mail?()

  • A、Information Rights Management
  • B、Joumaling
  • C、Legal disclaimer
  • D、Messaging Records Management

正确答案:D

第5题:

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

第6题:

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

第7题:

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

第8题:

Business law refers to the branch of law which consists of rules, statutes, codes and regulations established to provide a legal framework within which business may be conducted.()

此题为判断题(对,错)。


正确答案:√

第9题:

Which declarations of identifiers are legal?()

  • A、 $persons
  • B、 TwoUsers
  • C、 *point
  • D、 this
  • E、 _endline

正确答案:A,B,E

第10题:

多选题
Which are valid identifiers?()
A

_class

B

$value$

C

zer@

D

¥ngstr

E

2muchuq


正确答案: C,D
解析: 暂无解析

更多相关问题