Morning Everybody
In this article today we are going to learn " How we can compile and run java file ". So let`s get started.
Figure shown below:
First of all we need to download and install JDK then create file with .java extension. After creating file we need to compile this file using javac compiler.
If file has no error then java compile (javac) generate a .class file (byte code) and this class file is machine readable so it run on any platform (OS).
Now JVM load and verify this .class file than JVM is execute .class file and provides run time environment.
In this article today we are going to learn " How we can compile and run java file ". So let`s get started.
Figure shown below:
![]() |
| How java file is compile and run |
First of all we need to download and install JDK then create file with .java extension. After creating file we need to compile this file using javac compiler.
If file has no error then java compile (javac) generate a .class file (byte code) and this class file is machine readable so it run on any platform (OS).
Now JVM load and verify this .class file than JVM is execute .class file and provides run time environment.
Thank you. Have a nice day.
" Be Student , Be Curious "
For more detail watch this video :
No comments:
Post a Comment