Skip to content

Tag: catch-block

Code in “catch” block not executing

please help me understand why:) My program reach the “try” line, but seems to skip the “catch”, Although its printing the stacktrace… I’m using JOptionPane in my catch, but also System.out.println() not working. Code: Exception: Answer There is an NullPointerException internally just before the FileNotFoundException From your log. You can make sure it from following. This code here only for