Suppose you saved the HelloWorld.java in:
C:\users\LavanniM\confucius
Open a command prompt, go to the above directory and type:
> javac HelloWorld.java
Once the compilation completes, you will see a file HelloWorld.class, in the above directory.
This is the compiled version of HelloWorld - also called byte code.
No comments:
Post a Comment