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