Chinaunix首页 | 论坛 | 博客
  • 博客访问: 232205
  • 博文数量: 24
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 580
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-22 12:12
文章分类

全部博文(24)

文章存档

2011年(1)

2010年(5)

2009年(2)

2008年(16)

我的朋友

分类: LINUX

2008-11-18 09:29:03

1.下面程序输出什么内容
public class Test
{
 public static void main(String args[])
 {
  try
  {
   System.out.println("Hello aa");
   System.exit(0);
  }
  catch (Exception e)
  {
   System.out.println(e);
  }finally{
   System.out.println("Last !");
  }
 }
}
答案是:Hello aa  如果把System.exit(0);换成return又会如何?
 
 
 
 
内容增加中.....(基础很重要,要从现在做起)
阅读(872) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

coldwinter0112008-12-09 17:39:24

工作了,没机会面试了,等着以后再更新把,呵呵

chinaunix网友2008-11-27 07:54:01

last?