当前位置:SCJP程序员认证考试题库

问题:

[单选] Which expressions are correct to declare an array of 10 String objects? ()   

A .  char str[];
B .  char str[][];
C .  String str[];
D .  String str[10];

若单向桥式整流电路中有一只二极管断路,则该整流电路()。 不能工作。 仍能正常工作。 输出电压下降。 输出电压下降或不能工作。 H2标签在一个网页中,几个最为合理()。 1-2个。 3-4个。 5-6个。 没有具体规定,随意设置。 A public member vairable called MAX_LENGTH which is int type, the value of the variable remains constant value 100. Use a short statement to define the variable.()     public int MAX_LENGTH=100;。  final int MAX_LENGTH=100;。  final public int MAX_LENGTH=100;。  public final int MAX_LENGTH=100;。 下列成语中无错别字的一组是()。 沽名钓誉,弥天大罪,鞭挝,炫目。 天花乱坠,谬种留传,冗长,誉写。 明则保身,寻根究底,轻悦,摇曳。 变本加利,一脉相呈,栖身,祛除。 非侵染性病害 Which expressions are correct to declare an array of 10 String objects? ()   
参考答案:

  参考解析

严格来说这个题目没有给出一个正确的答案,唯一比较正确的是c,而完全满足题目要求的应该是:String str[]=new String[10]; 注意答案d的形式是不对的,这和c++也是不同的。

在线 客服