【单选题】【消耗次数:1】
下列哪个类的声明是正确的?( )。
abstract final class HI{}
abstract private move(){}
protected private number;
public abstract class Car{}
参考答案:
复制
纠错
相关题目
【判断题】 拥有abstract方法的类是抽象类,但抽象类中可以没有abstract方法。
①  正确
②  错误
【单选题】 Its a question of some abstract ( )of justice.
①  book
②  knowledge
③  concept
④  say
【判断题】 A word is a symbol, a representation of something in life, either physical or abstract.
①  正确
②  错误
【单选题】 声明成员变量时,如果不使用任何访问控制符(public, protected, private),则以下哪种类型的类不能对该成员进行直接访问 ( )
①  同一类
②  同一包中的子类
③  同一包中的非子类
④  不同包中的子类
【单选题】 若在某一个类定义中定义有如下的方法:abstract void performDial( );该方法属于( )。
①  接口方法
②  最终方法
③  抽象方法
④  空方法
【单选题】 ________, the number of private cars will increase sharply in the coming couple of years.
①  Undoubtedly
②  Doubtedly
③  Undoubted
④  doubt
【单选题】 _________, the number of private cars will increase sharply in the coming couple of years.
①  Undoubtedly
②  Doubtedly
③  Undoubted
④  doubt
【单选题】 如没有使用private关键字定义类的数据成员,则默认为( )
①  private
②  public
③  protected
④  friend
【单选题】 如没有使用private关键字定义类的数据成员,则默认为( )
①  private
②  public
③  protected
④  friend
【单选题】 编译下面源程序会得到哪些文件( )? class A1{ } class A2{ } public class B{ public static void main(String[] args) { } }
①  只有B.class 文件
②  只有 A1.class 和 A2.class 文件
③  编译不成功
④  A1.class、A2.class 和B.class 文件
随机题目
【单选题】 I am not used to speaking ________ public.
①  in
②  at
③  on
④  to
【单选题】 It was well known that Thomas Edison _____ the electric lamp.
①  discovered
②  invented
③  found
④  developed
【单选题】 ____ you know, David has been well lately.
①  Which
②  As
③  What
④  When
【单选题】 The garden _______while the Greens were away from home.
①  took good care of
②  was taken good care
③  was taken good care of
④  was taking good care
【单选题】 We’ve missed the last bus. I’m afraid we have no ________ but to take a taxi.
①  way
②  choice
③  possibility
④  selection
【单选题】 I didn’t know what to do, but then an idea suddenly ________ to me.
①  appeared
②  happened
③  occurred
④  emerged
【单选题】 Youve caught a cold. Youd better _______to school.
①  go
②  to go
③  not go
④  not to go
【单选题】 ________ you are leaving tomorrow, we can have dinner together tonight.
①  Since
②  While
③  For
④  Before
【单选题】 You had better ________ a doctor as soon as possible.
①  seeing
②  saw
③  see
④  seen
【单选题】 Australia is one of the few countries ____ people drive on the left of the road.
①  which
②  that
③  where
④  on which