执行以下代码:

public void Result{

  static{

      System.out.println("in first static");

  }

  {

          System.out.println("in null mothod");

  }

  static{

             System.out.println("in two static");

   }

   public Result(){

                 System.out.println("in Result");

    }

    public static void main(String[] args){

            Result  bj = new Result();

    }

the Console print:

   in first static

   in two static

   in null mothod

   in Result

posted on 2008-08-29 18:54  Cien  阅读(313)  评论(2编辑  收藏  举报