java.lang.ArrayIndexOutOfBoundsException
at purejava49.PrintStackTraceTest.main(PrintStackTraceTest.java:6)
java.lang.OutOfMemoryError
at purejava49.PrintStackTraceTest.main(PrintStackTraceTest.java:11)
java.lang.RuntimeException
at purejava49.PrintStackTraceTest.main(PrintStackTraceTest.java:17)

File not found
myfile.txt (No such file or directory)
java.io.FileNotFoundException: myfile.txt (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:122)
at purejava49.ExceptionMatching.main(ExceptionMatching.java:11)