陕西Java资格考试试题(含答案).docVIP

  • 2
  • 0
  • 约2.78千字
  • 约 9页
  • 2026-10-18 发布于四川
  • 举报

陕西Java资格考试试题(含答案)

单项选择题(每题2分,共20分)

1.以下哪个是Java语言中的基本数据类型?()

A.String

B.Integer

C.char

D.ArrayList

2.在Java中,以下哪个关键字用于定义常量?()

A.var

B.final

C.static

D.const

3.以下哪个方法用于在Java中输出信息到控制台?()

A.System.out.input()

B.System.in.println()

C.System.out.println()

D.System.input.out()

4.Java中,创建对象使用的关键字是()

A.class

B.new

C.this

D.super

5.以下哪种异常属于运行时异常?()

A.IOException

B.SQLException

C.ClassNotFoundException

D.ArithmeticException

6.Java中,数组的长度属性是()

A.length()

B.size()

C.length

D.capacity

7.下面哪个修饰符可以使类不能被继承?()

A.private

B.protected

C.final

D.static

文档评论(0)

1亿VIP精品文档

相关文档