Java Jen Baby Java notes

Source: Internet
Author: User

1. Notepad to develop a Java program
Write source program source program with. Java as the suffix name
compiled Javac the resulting file with a. class suffix name
run Java to run the. class file generated after compilation
2.java Program Framework
Public class hello{
Public static void Main (string[] args) {
//Notes
System.out.println ("helloworld!");
 }
}
3. Escape character
newline \ n space \ t
Note: Escape characters can only be used in strings!
4. Notes
/ * * * multi-line Comment
//single-line comment
5. Coding Specifications
only one statement is written on a single line.
note Hierarchy, indentation
6. Note the point:
class name can not be random (meaningful, first letter capital)
Java is case sensitive, note punctuation in English
";" is a must.
"" " is a must.
the output string must be quoted in quotation marks, and must be in English

Java Jen Baby Java notes

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.