填空题

下列程序的输出结果是【 】。 class Test { public static void main (String args[ ] ) { int m = 6; do { m - -;} while (m>0); System.out.println("m = " +m); } }

【参考答案】

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

填空题
当实现Runnable接口时,要实现的方法是【 】。
填空题
下列程序的功能是显示用户在命令行方式下指定的任意驱动器目录,请补充程序。import java.iO.*;public class FindDirectories{public static void main (String args[ ]){if(args.length= =0)args=new String[ ] .. };try{File pathName=new File(args [0]);String[]fileName=pathName.list( );for(int i=0;<fileName.length;i+ +={File f=new 【 】if(f.isDirectory( )){System.out.println(f.getCanonicalPath( ));main(new String[ ]{ f.getPath( )});}}=catch(IOException e){e.printStackTrace( );}==
相关试题
  • 有定义boolean b1=5!=6;,则变量b...
  • 线程在生命周期中要经历5种状态,分别是新...
  • 在Java程序中,通过类的定义只能实现单重继...
  • 构造方法是类中的一种特殊方法,用它来定义...
  • 捕获异常要求在程序的方法中预先声明,然后...