Java4android "4" Java variables

Source: Internet
Author: User

Java variables are divided into:

1: Basic type:

Character type, Boolean, numeric type.

2: Reference type (temporarily not seen)

By the way, familiarize yourself with this code.

public class test{

public static void Main (String args[]) {

System.out.println ("Test");

}

Attention:

1 This test and name should match the Test.java.

2 compile, javac Test.java suffix can not be less, but the execution of the time is Java Test. No test.class.

The name of the 3 variable is legal if it starts with a letter underlined dollar sign.

}

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.