[JAVA] About exceptions

I am a beginner in programming. This time I learned exception handling, so I will output it. If you have any mistakes, please leave a comment.

Q1: What are exceptions?

An error detected during program execution

Q2: What is the program execution time?

The mechanism up to the execution of java is as follows. fullsizeoutput_1b.jpeg

The error that appears in (Execution) in the above figure is ** Exception **

Q3: What happens if an exception occurs?

An error message appears on the console and the process is ** interrupted **.

Q4 Is there a way to not interrupt the process when an exception occurs?

There is. The method is ** exception handling **.

Click here for the referenced site

Recommended Posts

About exceptions
About =
About method.invoke
About Kotlin
About attr_accessor
About inheritance
About params
About Docker
About Rails 6
About form_for
About Spring ③
About enum
About polymorphism
About Optional
About hashes
About JitPack
About Dockerfile
About this ()
About devise
About encapsulation
About Docker
About JAVA_HOME
About active_hash
About static
About scope
[Maven] About Maven
About exception handling
Review about bundler
About Java interface
[Java] About Java 12 features
About Rails routing
About cyclomatic complexity
About exception handling
About AsyncTask Generics
About Ruby symbols
About array multiplication
[Java] About arrays
About HotSpot VM
About ruby ​​form
[Swift] About generics
About Active Storage
About class inheritance.
About Spring AOP
About Ruby Hashes
About singular methods
About getter setter
About build tools
[Note] About nil
About keyword arguments
Chew about API
[About double hash]
About installing Cocoapods
Where about java
About HttpServlet () methods
About Java features
About ActiveRecord :: PendingMigrationError
About SIGNING_REGION: NoSuchFieldError
About the method
About standard classes
About spring AOP
About Ruby arrays