Java Fundamentals 1

Source: Internet
Author: User

Java is an explanatory language {Introduction to efficient cross-platform (write once run anywhere at a time)}java virtual machine >java compiler > bytecode files---*.class----class loader

is a purely object-oriented language {encapsulates inheritance polymorphism}

James Gosling (1990 Writing language (oak--oak))

1995 improved form Java----jdk1.0

Identifier
Whatever you need to name yourself is called an identifier.

Code specification:
1. Identifiers may consist of letters (uppercase and lowercase), _, $, and cannot start with a number

2. Declarations of all variables and methods must be made to be known

3. Hump naming Method (first letter lowercase, the remaining words capitalized)
getElementById ()
4. Any operator must have a blank on both sides

5. Class name first letter must be capitalized

Java Basic data type:

Four class eight (underlying data type):
integer
            byte    2 8-way      1 bytes
            short    2 16-Time Square      2 bytes
            int    2 32-Time Square      4 bytes
            long    2 64-Time Square      takes 8 bytes of

Floating point Type
Float number of significant digits 7 bits accounted for 4 bytes
Double significant digits 16 bits 8 bytes

Boolean type
Boolean True/false of 1 bytes
Character type
Char 0-65535% of 2 bytes

String type (not part of data type)
String


Reference type:
All the classes
All the interfaces
All the arrays
Null

Java Fundamentals 1

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.