In this article we will look at what is an exception?, what is exception handling?, and how Java supports exception handling. In general, the errors in programs can be categorized into three types: Syntax errors: Also called compile time errors when a program violates the rules of the programming language. Ex: missing a semi colon, typing a spelling mistake in keyword etc. Run-time errors: Errors which are raised during execution of the program due to violation of semantic rules or other abnormal behaviour. Ex: dividing a number with zero, stack overflow, illegal type conversion, accessing an unavailable array element etc. Logic
The post An introduction to Exception Handling in Programming appeared first on Coding Security.
An introduction to Exception Handling in Programming
read more
Tidak ada komentar:
Posting Komentar