How to Compile a java file and Execute

Опубликовано: 15 Март 2026
на канале: Lnw Tutorials
45
0

How to Compile a java file and Execute ?
1- Write a class file and save it with class name and extension ".java".
2- Execute command
$ javac classfilename.java

3- You will get another compile file "classfilename.class"

4- Now All is done, For execute first java program simple type,
$ java classfilename