answersLogoWhite

0

There are three main types of error.

Compile Error:

A syntax error is the most common error of all. If the program was written without constructing the commands in a way the computer can interpret, then this is recognized before the program ever runs and is usually a compile time error.

(Java is really strict about program structure.)

Linking and Library Errors:

Often one program uses something from another. If a program is correctly constructed but when one attempts to use it the connection to the other program is incorrect, or out of date or some other incompatibility, an error is generated.

Run time Error:

This happens if you try to perform an illegal operation. An illegal mathematical operation would be something like the square root of a negative number or division by zero.

See related links for a more explanation.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is main thread in java program?

the main thread is the first thread that creates when the JVM starts executing your program. All subsequent threads that you may create in your program would be child threads to the main thread. It is important to note that if the main thread exits, all other threads that were spawned by it will also get killed.


What problem do salty water fish have?

Their main problem is their owners inability to look after their water properly.


How to write java program without using main method?

Java program without mainWe need a main method for executing a program.But YES we can write a program without using main() method.TRICK 1 of 2 :: while writing applets in java we don't use main... we use init() method instead.TRICK 2 of 2 :: using 'static' we can write a program whic will execute successfully and output the desired message on screen. Here it is :: class Mohit{ static { System.out.println("This java program has run without the main method"); System.exit(0); } } -->save the program as Mohit.java to compile::javac Mohit.java (in command prompt) to run ::java Mohit(command prompt) output will be ::This java program has run without the main methodWhoa!!!!! we are done.;)


Why wont your c plus plus program stay open?

If you are talking about the program executing, but the output screen being displayed for a flash and then disappearing, I suggest adding getch() or getchar() function at the end of your main function. This will make sure that the output screen waits for you to press a character before the program terminates.


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


What are the main steps involved in writing algorithm?

1 Define the problem 2 Analyze the problem 3 Develop an algorithm/method of solution 4 Write a computer program corresponding to the algorithm 5 Test and debug the program 6 Document the program (how it works and how to use it)


What is the main problem?

the main problem is a problem that occurs in the middle of the story


what is main problem?

the main problem is a problem that occurs in the middle of the story


Can java program can be written without main?

No, main() class is required to execute the program as that's the starting point of the program.


The main method of a program has?

The Java main method of a program is the place where the program execution begins. A main method would look like below public static void main(String[] args){ }


What is main problem of human?

the main problem of a human is war, weapons, violence, and mental problems The main problem of a human is the unknown.


Main conflict definition?

A main conflict is the main problem that a character has in a story, or the main problem of the story