Debugging and Errors Flashcards
This is an illegal operation performed by the user which results in the abnormal working of the program.
Error
This are often remain undetected until the program is compiled or executed.
Programming Errors
True or False:
Some of the errors inhibit the program from getting compiled or executed.
True
True or False:
Errors should be removed before compiling and executing
True
This occur or we can say, are detected during the execution of the program.
Run Time Error
A Runtime Error can be discovered when the user enters an _______
Invalid Data
This occur when a program does not contain any syntax errors but asks the computer to of something that the computer is unable to reliable do.
Runtime Error
True or False:
During compilation, the compiler has no technique to detect a Runtime Error
True
What is the meaning of JVM?
Java Virtual Machine
This can detects the Runtime Error while the program is running.
Java Virtual Machine
How to handle the Runtime Error during a runtime?
Put the error code inside the try block and catch the error inside the catch block.
How to know if you are having a runtime error?
- if the user inputs a data of string format when the computer is expecting an integer, there will be a runtime error.
- Assigning/Retrieving Value from an array using an index which is greater than the size of the array
These are those errors which prevent the code from running, because of an incorrect syntax such as a missing semicolon at the end of a statement or a missing bracket, class not found, etc.
Compile Time Error
How can a Compile Time Error detected?
By the Java Compiler and an error message is displayed on the screen while compiling.
Compile Time Errors are sometimes also referred to as ____
Syntax Errors