Difference Between java, javaw and javaws


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.
kn java adda

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

javaws (java Web start  utility):

javaws is web start utility is used to launch the java application in distributed through web.The client have jnlp_url associated with such application and we can use the javaws application to download that application. It is mainly used in the internet to download a upgraded version of that application.