Hello world !, Helloworld

Source: Internet
Author: User

Hello world !, Helloworld

After the jdk environment is installed, write the first java program hello. java:

Public class hello {public static void main (String args []) {System. out. println ("hello world! ");}}

After compilation, the class file will appear.

Note:

1. The letters after the public class must match the file name case. Note that the characters are case-sensitive.
2. Write a pair of symbols in pairs, such as braces and parentheses.
3. Use the tab key to indent braces {} to develop a good indentation habit.
4. compiled source code needs to be compiled into class files
5. Enter the source code folder in cmd for compilation.
Javac hello. java
Java hello


What is Hello World?

"Hello, World" is so blunt. Generally, programmers like to use Hello World when compiling programs, because the first program that successfully compiled with C displays this sentence, then it becomes a symbolic sentence. For the program itself, world actually represents people. So you can simply say "Hello everyone ".

JAVA Hello World Program

Javac Hello. java

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.