instanceof 대 getClass () 내가 사용하는 경우 성능을 얻을 참조 getClass()및 ==이상 연산자 instanceOf연산자. Object str = new Integer("2000"); long starttime = System.nanoTime(); if(str instanceof String) { System.out.println("its string"); } else { if (str instanceof Integer) { System.out.println("its integer"); } } System.out.println((System.nanoTime()-starttime)); starttime = System.nanoTime(); if(str.getClass() == Str..