1st case: you are throwing an exception in the main method and that will go straight to your catch block which will not allow your "kk" to be printed.
2nd case: you are calling the show method which which in the compiler terms "might or might not" throw an Exception so it thinks System.out can be reached.