java:
java.exe is win32 console application is used to run java classes and to run the java classes using the java.exe all the System.out.println() statements will be executed and print the corresponding output in the console.Eg:
Import java.io.*;
Class Test1
{
Public static void main(String[] args) throws IOException
{
System.out.println(“console output”);
printWriter pw=new PrintWriter(“abc.txt”);
pw.println(“file output”);
pw.flush();
}
}
Compile: javac Test1.java
Run : java Test1
Output : Both the console and file outputs are displayed in the corresponding format.
javaw:
This is also win32 console application used to run the java classes without console output that is here the System.out.println() will be executed but corresponding output will not be displayed in the console.Eg: To compile and run the application by using these steps you have to about this command
Complie: javac Test1.java
Run: javaw Test1
Output: The output of the above process will be displayed only in the file not in the console