填空题

在Java的基本数据类型中,char型数据占2字节内存空间,int型数据占用__________字节内存空间。

【参考答案】

4
<上一题 目录 下一题>
热门 试题

单项选择题
在oneMethod( )方法运行正常的情况下,程序段将输出( )。 public void test( ) try oneMethod( ); System.out.println ( condition 1 ); catch (ArratlndexOutOfBoundException e) System.out.println( condition2 ): catch (Exception e) System.out.println( condition 3 ); finnally System.out.println( finally ):
A.condition 1

B.condition2

C.condition 3
D.condition 1 finally
单项选择题
下面程序的运行结果是( )。 public class OperatorsAndExpressions void equalsMethod1( ) 基本类型的数据之间的比较 int i=10,j=15; System.out,println(i==j); 复合数据类型的数据之间的比较 String s1=new String ( how are you ); String s2=new String ( how are you ); System.out.println(s1==s2): public static void main (String args[ ]) OperatorsAndExpressions OperAndExp=new OperatorsAndExpressions( ): 用于基本类型数据和复合类型数据的== 运算符 OperAndExp,equalsMethod1( )
A.false false

B.false true

C.tree false
D.true true
相关试题
  • __________是用来实现客户与服务...
  • 以下程序的输出结果为__________...
  • Java程序包括源代码(.java文件)、___...
  • Java语言的各种数据类型之间提供自动转换,...
  • 在线程中普通优先级的线程,其优先级默认值...