您现在的位置:在线题库 >> 计算机类 >> JAVA程序设计
  • ID:9110-11043

    使用两个下标的数组被称为数组,假定有如下语句:

    float scores[ ][ ] = { {123}{45}{6789} }

    scores.length的值为: scores[1].length的值为:

    scores[1][1]的值为:

  • 相关试题查看更多

  • ID:9110-1147

    关于异常处理,以下说法错误的是( )。
    A.可以使用throw语句抛出异常
    B程序可以使用trycatchfinally语句捕获异常
    C.无论try块中是否发生异常,finally标识的代码块都会被执行
    Dtry语句后只能有一个catch语句

    查看解析

  • ID:9110-11574
    有如下程序段:

    public class ish{

    public static void main(String[] args)

    {String s="call me ishmae";

    System.out.println(s.charAt(s.length()-1));

    }

    }

    则输出结果为:( )

    A. a B. e C. c D. "

    查看解析

  • ID:9110-26917
    写出下列程序的运行结果

    class Ex2{
    public static void main(String []args){
    for(int i=0;i<10;++i){
    if(i%2==0) continue;
    System.out.print(i+" ");
    }
    System.out.println();
    }
    }


    查看解析

  • ID:9110-1532

    一个Java Application程序中有且只有一个方法,它是整个程序的执行入口。

    查看解析

  • ID:9110-11549

    下面哪个单词是Java语言的关键字(

    AFloat B.this C.string D.unsigned

    查看解析