STAGES OF JAVA PROGRAMMING
There are force different stages we have in the Java program
1)Creation of java program (Src Code)
2) Saving the Java program
3) Compilation
4) Execution
I) Creation of Java program (Src Code)
If I want to create the Java program we have to use one text editor called as "notepad".
II) Saving the Java program
We can save the program by using the ".java" extension.
II) Compilation:
- In the compilation we check for the errors in a program.
- If there is any error then we will get a compile time error OR if the error is present in the compilation stage then it is known as compile time error.
- Compile time error has two types.
4.If there is no error in a compilation stage then we will get a one more file code as class file.
5.Class file contains bytecode which is non human readable.
6.To compile the Java file we we have to use the the syntax called as.
IV) Execution:-
- In this stage we check for the errors before getting the output.
- If there is any error present in this stage then it is known as run time error.
- Runtime error has two types.
4.If There is no error you will get a output.
5.To execute the Java file we have to use the syntax
0 Comments