Differences between Java and javaw

Source: Internet
Author: User
JavaProgramNothing is displayed on the Java console. If you are developing a program, you can use Java to see the error message. If you are running a completed program, you can use javaw, it can increase the speed by a little. Both applications can run your program and are very similar,But there is an important difference.Java runs through the console, while Java W does not. The console is almost compiled into plain text. For example, if you run all the printed statuses with javaw, the status will not be printed. The useful information you print in the program is the same as the error information. Therefore, if you choose which one to use: if it is based on plain text, it is compiled into Java. If it is graphical, it can be printed as plain text at any time in Java. If you are checking for errors, use Java. If the program is purely graphical and you need to increase the speed, use javaw.
1 java.exe:
Run Java program
2、javac.exe:
Compile to generate the. Class file.
32.16javaw.exe:
Compared with the Java command, a console window is displayed and maintained when you run the Java command. when Java W is run and output in the console, the Console appears at the beginning. After the main program is called, the console disappears. Java W is mostly used to run GUI programs.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.