Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A {
- public static void main(String[] args) {
- try {
- System.out.println("println does not declare thrown checked exceptions");
- } catch (Throwable e) {
- e.printStackTrace();
- throw e;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment