... indented once. public static void throw Exception left parenthesis right parenthesis throws Exception. Line 22, indented once. left brace. Line 23, indented twice. try forward slash forward slash throw an exception and immediately catch it. Line 24, indented twice. left brace. Line 25, indented 3 times. System period out period print l n left parenthesis double quote Method throw Exception double quote right parenthesis semicolon. Line 26, indented 3 times. throw new Exception left parenthesis right parenthesis semicolon forward slash forward slash generate exception , This line is highlighted. Line 27, indented twice. right brace forward slash forward slash end try. Line 28, indented twice. catch left parenthesis Exception exception right pa
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.