answersLogoWhite

0

In computer science, runtime or run time describes the operation of a computer program, the duration of its execution, from beginning to termination (compare compile time). The term is also used as a short form when referring to a runtime library (without a space), a program or library of basic code that is used by a particular computer language to manage a program written in that language while it is running. A runtime environment is a virtual machine state which provides software services for processes or programs while a computer is running. It may pertain to the operating system itself, or the software that runs beneath it.

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
More answers

A runtime error is a software or hardware problem that prevents a program from working correctly. Runtime errors might cause you to lose information in the file you're working on, cause errors in the file (corrupt the file) so you can't work with it, or prevent you from using a feature. Unlike stop errors, runtime errors don't typically cause Windows or a program to stop working.

User Avatar

Wiki User

13y ago
User Avatar

A runtime error is one that is not caught by the compiler; instead, it appears when the program is run.

For example (in Java), the following will fail at compile time, assuming the variable was not declared previously:

x = 5;

On the other hand, the following will compile correctly, but it will fail at runtime, because of the division by zero:

x = 5;
y = 0;
z = x / y;

In this case, the compiler can't know in advance what values the variable may have, but the error appears when the program is run.

A runtime error is one that is not caught by the compiler; instead, it appears when the program is run.

For example (in Java), the following will fail at compile time, assuming the variable was not declared previously:

x = 5;

On the other hand, the following will compile correctly, but it will fail at runtime, because of the division by zero:

x = 5;
y = 0;
z = x / y;

In this case, the compiler can't know in advance what values the variable may have, but the error appears when the program is run.

A runtime error is one that is not caught by the compiler; instead, it appears when the program is run.

For example (in Java), the following will fail at compile time, assuming the variable was not declared previously:

x = 5;

On the other hand, the following will compile correctly, but it will fail at runtime, because of the division by zero:

x = 5;
y = 0;
z = x / y;

In this case, the compiler can't know in advance what values the variable may have, but the error appears when the program is run.

A runtime error is one that is not caught by the compiler; instead, it appears when the program is run.

For example (in Java), the following will fail at compile time, assuming the variable was not declared previously:

x = 5;

On the other hand, the following will compile correctly, but it will fail at runtime, because of the division by zero:

x = 5;
y = 0;
z = x / y;

In this case, the compiler can't know in advance what values the variable may have, but the error appears when the program is run.

User Avatar

Wiki User

15y ago
User Avatar

A runtime error is one that is not caught by the compiler; instead, it appears when the program is run.

For example (in Java), the following will fail at compile time, assuming the variable was not declared previously:

x = 5;

On the other hand, the following will compile correctly, but it will fail at runtime, because of the division by zero:

x = 5;
y = 0;
z = x / y;

In this case, the compiler can't know in advance what values the variable may have, but the error appears when the program is run.

User Avatar

Wiki User

15y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is Runtime Error?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What error is caught when a program executes?

compile error


What type of errors we have in Java programming?

syntax error, Runtime error, Longic error


Difference between syntax error and runtime error?

Syntax error can be found during compilation. Runtime error can be found only when you are trying to execute your program. Syntax errors are those which are caused by incorrect usage of the programming language. All programming language compilers are designed to detect and report such errors done by the programmer Runtime errors are those which are caused by incorrect usage of programming logic. for example a runtime divide method will throw a run time error if the divisor is '0' because numerically you cannot divide a number by 0


Is error and exception same?

Error: Any departure from the expected behavior of the system or program, which stops the working of the system is an error. Exception:Any error or problem which one can handle and continue to work normally. Note that in Java a compile time error is normally called an "error," while a runtime error is called an "exception." Errors don't have subclasses while exception has two subclasses, they are compile time exception or checked exception (ClassNotFound Exception, IOException, SQLException etc.) and runtime or unchecked exception(ArrayIndexOutOfBounds Exception, NumberFormat Exception).


When does a Borland c compiler throw an error as could not execute 16-bit process error code 32 when a program is executed after successful compilation?

If a program compiles and links successfully then there can be no compiler errors, period. Your error is a runtime error because the error only occurs when the machine code is executed, not during the compilation or linking processes. Runtime error 32 indicates a sharing violation. This essentially means you've attempted to access a file that is being used by another process.