Language
Version: SE 8
Categories
-
User Program Communication
-
Variables
-
Control Flow
-
Object Oriented Programming
-
String Class
Search Results
Searching for: Array in Java
Throwing an Exception
Language: Java
Methods prone to an error in runtime can throw an exception, instead of having program crash or having a logical error within the program.
Try Catch Block
Language: Java
A try-catch block is used to mitigate errors in code and prevent program crashing during runtime. It 'tries' a block of code that could give an error. If the error (exception) is caught, it will execute a different block of code rather than crash the program.
< Previous Page |