Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java finally Keyword

try {
  int[] myNumbers = {1, 2, 3};
  System.out.println(myNumbers[10]);
} catch (Exception e) {
  System.out.println("Something went wrong.");
} finally {
  System.out.println("The 'try catch' is finished.");
}
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #Java #finally #Keyword
ADD COMMENT
Topic
Name
6+3 =