Top.Mail.Ru
May 6th, 2010 - Java developers — LiveJournal
? ?

Java developers

May 6th, 2010
Image

11:51 am - Imagebanana - Quiz of the day

What is the output?
public class SystemExit{
   public static void main(String... args){
      Runtime.getRuntime().addShutdownHook(new Thread(){
         public void run(){
            System.out.println("Message 2");
         }
      });
      try{
         System.exit(99);
      }finally{
         System.out.println("Message 1");
      }
   }
}
Powered by LiveJournal.com
Image