• 2022-06-06
    下列表达式正确的是( )
    A: byte=128;
    B: Boolean=null;
    C: long l=0xfffL;
    D: double=0.9239d;
  • C

    内容

    • 0

      以下表达式语句合法的是() A: yte a=128; B: Boolean b=null; C: int c=1.0; D: float d=0.9239;

    • 1

      对于“switch(a)”表达式中的变量a,它可以被声明为哪些合法数据类型? A: boolean, byte, char, short, int, long B: boolean, byte, char, short, int C: byte, char, short, int D: boolean, byte, char, short, int, long, float, double

    • 2

      Java定义了八种基本数据类型,以下选项中全部是正确的基本数据类型关键字的是( )。 A: int、byte、char、integer、double B: float、long、byte、short、String C: char、byte、bit、double、int D: float、double、boolean、byte、long

    • 3

      下列赋值语句错误的是()? A: short s=12345; B: double d=3.14f; C: long l=1; D: boolean b=0;

    • 4

      指出下列类型转换中正确的是( ) A: int i=8.3; B: long L=8.4f; C: int i=(boolean)8.9; D: double d=100;