Java Learning Essay (i) introductory article

Source: Internet
Author: User

Java's father is called James Gosling Java mascot named Duke also called JavaBean,

We write the source code through the compiler to convert the source to computer-recognized machine language to achieve the command of the computer

Code execution: The source code needs to be compiled into machine language through the compiler, because the computer will only read machine language (High Level 1, low level 0) 0,1 composition

Java has two types of compilers and interpreters so you can implement multi-platform operations.

Java Features: Simplicity, pure object-oriented, cross-platform

Jdk:java Development Kit Jre:java Run Environment Jvm:java virtual machine

Basic types of Java are shaped, float, character, Boolean 0

Variable: A piece of memory that stores data, and the data content of that area can vary

Variable declaration: Specifies a memory space for assigning data variables: Storing data in the variable's memory space

Variables are used to store data in memory, variables store variable data, variables must first be declared and then assigned

Variable naming: Give the variable a name definition syntax: data type variable name;

Variable names can only consist of numbers, letters, underscores, variable names cannot begin with a number, the name cannot be the same as the keyword, and the variable name in the same function cannot be the same

Variable name specification: variable name to be able to look at the text, the first letter of the variable name lowercase, in addition to the first word, the other first letter capital (Camel name method)

Data operations are: numeric operations, String operations

The numeric operation is: the operation between int and Double is: plus (+), minus (-), multiply (*), except (/), take out (%). return type: Same as Operation type

String operations: An operation between a string and any type. String operations only support: stitching (+). The return type is: String type.

Java Learning Essay (i) introductory article

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.