answersLogoWhite

0

What are Run time errors in java?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

sometimes a program in java may compile properly creating a .class file but but may not run properly .

The program may produce rong results ue to some wrong logics etc.

such errors ocuring at the tiome of runnning are known as run time errors.

some of the run time erros are :

*(a)dividing an integer by zero.

*(b)accesing an element that is out of the bounds of an array.

*(c)attemping to use negatie size of an array.

*(d)converting invalid strng to a number.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Difference between a java complier and the Java JIT?

A java compiler takes Java source code and turns it into Java bytecode, which can then be run by the java virtual machine.Using JIT means that the java code will be compiled and executed at the time that you run the program, which will slow down the program because it has to compile the code at the same time that it runs.


I've updated java 3 times and when I try to use java I get an error saying my java is out of date I've tried hitting the run this time button it doesn't work?

Just press the button that says run time, or something like that, unfortunateley you have to press that button every time you use a java thingamajig


How can you pass run-time arguments in java?

Once you have compiled your Java source files: javac MyClass.java You can run the resulting class file and pass arguments: java MyClass arg0 arg1 arg2


What is run time in java?

That refers to anything that happens while you run the program. For example, the compiler may detect certain problems while you compile the program, but certain errors are bound to happen only when you actually run the program - i.e., at runtime.


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.


Do you have to have java on your coumpter to run everything on your coumpter?

No; lots of programs run without Java. You only need the Java runtime to run programs specifically designed with Java technology.


What are two main purposes of the Java compiler javac?

One of them is creating *.class from *.javaSecond is identifying syntax errors in the *.java files and intimating the programmer so that he can correct them


How do you write and execute java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


How do you write and execute the java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


Which brands of laptops can run JAVA?

Any computer (desktop or laptop) can run Java.


Neither compiler nor the linker will report run time errors?

Very true, that's why we call them run-time errors.


What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.