Java BASIC Programming structure

Source: Internet
Author: User

notes:
1. Line comments//2. Block comments/* */3. Method Comment/** *
/
Data type:
Java is a strongly typed language that includes 8 basic data types and 3 reference data types, with basic data types including four integers (Byte,short,int,long), 2 floating-point types (float,double),    There are 1 character types used to represent Unicode encoded character cells char and one to represent the true worth of the Boolean type, 3 reference data types including arrays, classes, and interfaces. Conversions between data types: (dashed lines represent loss of precision, solid lines represent no loss of precision):
variables:
definition and initialization constants for variables (final decoration, usually full capitalization of constant names)
Operator:
self-increment decrement: ++,--relational operator: ==,! =,>,<,>=,<= ternary operator: Condition?expression1:expression2 bit operator:&,|,^,~,<<,>>,>>> Bar Piece Operator: &&,| | (Note the difference from &,|) mathematical functions and constants: Some functions and constants in the math class
string:
substring, concatenation, immutable string
Control Process:
condition, loop statement
Arrays and large values:
Big value: Biginteger,bigdecimal array: Definition, initialization, anonymous array, foreach Loop, array copy, Main method command line arguments, array sort, multidimensional array


From for notes (Wiz)

Java BASIC programming structure

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.