class="java"> System.out.println( Thread.currentThread().getStackTrace()[1].getFileName()); System.out.println( Thread.currentThread().getStackTrace()[1].getLineNumber()); System.out.println( new Throwable().getStackTrace()[0].getFileName()); System.out.println( new Throwable().getStackTrace()[0].getLineNumber());