kyoto dreams
Wednesday, January 11, 2006
  Finally Given the code below. What is the output?

public class Finally {
public static void main(String[] args) {
foo();
}

static void foo() {
try {
System.out.println("try");
System.exit(0);
}
finally {
System.out.println("finally");
}
}
}
 
Comments: Post a Comment

<< Home

ARCHIVES
May 2005 / June 2005 / August 2005 / January 2006 / March 2006 /


Powered by Blogger