answersLogoWhite

0

What is an error in java?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

An error or more commonly known as an Exception is a situation where the java program behaves in a way it is not supposed to do so. It is a problem in the code that is causing the JVM to terminate or throw error messages in the console.

Ex: When you initialize an array list with 10 elements and try to access the 11th element in the array list you will get an array index out of bounds exception.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Java error click for details?

error .click for details


How do you stop the error 'java' is not recognized as an internal?

This error usually means that Java has not been installed on your computer. If you are not prompted to install it, visit the Java website to download it separately.


What type of errors we have in Java programming?

syntax error, Runtime error, Longic error


Where can someone find information on the Java language for no such method error be found?

"No such method" is an error message that may appear when attempting to create a program with Java. Users who understand the Java programming language can find an answer on websites such as Stack Overflow and Crafting Java.


It is not an error not to end a Java file name with the java extension?

If you want to compile a java program the name of that source code must end with extension .java


What is the way to get rid of Java lang no class deffound error?

To get rid of the Java lang no class deffound error, one must add the class or .jar file which contains this class into the Java classpath. When a Java class is run from the command line, one must add a dot (.)


What is syntax errors in java?

Runtime errors in Java means that there is some code error existing in your computer and it is impossible for you to deal with it by yourself unless you are the you're the applet's designer and change the code. Most of the time, runtime errors in Java will appear error message just like: "Java(TM) Plug-in Fatal Error Several Java Virtual Machines running in the same process caused an error." "Java(TM)Plug-in Fatal ERror the Java Runtime Environment cannot be loaded."


What happen if you declare class as recursive?

It will get a compiler error in Java.


Why java script called as platform independent?

java also called as platform independent.because we will use java application at any operationg system and any hardware. it not contain error. so we called java as platform independent..


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

Runtime Error Cannot be Rectified but Runtime Exception can.


Why to know that java is case sensitive?

java is a case sensitive language! as in some place it is very imp to know bcoz it will show error! For example : if u will write system.out it will show error! u hv to write System.out.


Java runtime error - NoClassDefFoundError -- how to remove this error in java programming?

This error means that there was a call to a nonexistent class, but this was not caught by the compiler since the class existed when the file was compiled but was removed before running the .class file. To fix this problem try restoring any files you deleted to the SAME directory as your .class file. This error can also be fixed by changing the Java classpath to point to the locations of your files. The -cp command line option should help.