ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 자바
    프로그래밍 언어/제어 구조 2012. 6. 18. 09:41

    자바는 goto 문을 지원하지 않는다.

      exit_for:

        for(a=1; a<10; a++){

          for(i=1; i<=10; i++){

            if(i%3==0)

              break exit_for;

            ..

          }

          ..

        }

        ..

      }



    synchronized 키워드


    자바에서 예외는 객체이다. // java.lang.Throwable


    java.lang.Throwable

    .getMessage()

    .printStackTrace()


    <- Error

    <- AssertionError


    <- Exception

    <- RuntimeException

    unchecked exception



    List<Shape> shapeList = Arrays.asList(new Circle(), new Square(), new Triangle() );

    for (Shape shape : shapeList) ...;


Designed by Tistory.