compiling and getting of a java program,Java Programs,Java Compilation

Question:
 have written some java programs in java but iam unable to compile and get the output of it.so please help me

 To compile your java code you need to use java compiler javac.exe
Code:
javac source.java
Example:
javac example1.java

This will generate source.class file in same path of the file . ( .class is a byte format file ) .

To run your code :
java example1

No comments:

Post a Comment

Please Provide your feedback here