Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java catch Keyword

try {
  int[] myNumbers = {1, 2, 3};
  System.out.println(myNumbers[10]);
} catch (Exception e) {
  System.out.println("Something went wrong.");
}
 
PREVIOUS NEXT
Tagged: #Java #catch #Keyword
ADD COMMENT
Topic
Name
3+2 =