单选题 以下哪个是基本数据类型?( )

A、 int
B、 String
C、 Integer
D、 Float
下载APP答题
由4l***96提供 分享 举报 纠错

相关试题

单选题 有以下代码,请问该程序的运行结果是什么( ) class Example { public static void main(String args[]){ boolean b=true; System.out.println(b); }}

A、打印输出true
B、打印输出1
C、编译错误
D、无内容输出

单选题 请问如下哪个方法可以将JMenuBar加入JFrame中( )

A、setMenu()
B、setMenuBar()
C、add()
D、addMenuBar()

单选题 在switch(expression)语句中,expression的数据类型不能是( )。

A、double
B、char
C、byte
D、short

单选题 有一名为MyClass的public类,想成功编译需满足哪个条件( )

A、MyClass类中必须定义一个正确的main()方法.
B、MyClass必须定义在MyClass.java源文件中.
C、MyClass类必须定义在MyClass包中.
D、MyClass必须被导入.

单选题 以下哪个是基于字节的文件输入流类( )

A、FileReader
B、FileOutputStream
C、FileWriter
D、FileInputStream

单选题 对于构造函数,下列叙述不正确的是( )。

A、构造函数也允许重载.
B、子类无条件地调用父类的无参构造函数.
C、子类不允许调用父类的构造函数.
D、在同一个类中定义的重载构造函数可以相互调用.

单选题 在swing中,显示一些不需要修改的文本信息,一般使用( )类的对象来实现。

A、JLabel
B、JButton
C、JTextArea
D、JTextField

单选题 给出以下代码,请问该程序的输出结果是什么?( ) class Example{ public static void main(String[] args) { Float f1=new Float("10.4F"); Float f2=new Float("10.4f"); System.out.print(f1==f2); System.out.print("\t"+f1.equals(f2)); }}

A、true false
B、true true
C、false true
D、false false