<> First day of language foundation :
<> Personal introduction :
Ke Jing Wang (WKJ): Lecture in Dane 11 More than years , Mainly responsible for java The first phase of the course
* Responsible module : common 19 Day class
* Language foundation : speak 6 day , Speaking grammar rules , regulations -------------- Recite , No need to understand ( Practice more )
* object-oriented : speak 10 day , Talk about design ideas , thinking ------------ Need to understand ( Practice more , Think more )
* API introduction , Binary : speak 3 day , Talk about common tools , For the back API Advanced preparation ---------- No need to understand , remember ( Practice more )
* study Java Tips for :
* Practice more
* Think more
* Small requirements :
* The classroom atmosphere should be more lively
* Download and install JDK and IDEA:------------------- The installed students don't need to re
* download :
* Open browser , Enter in the address field doc.canglaoshi.org, enter
* Find common Downloads , find Windows/Mac ARM/Mac Intel necessary , Download the inside JDK 8 and IDEA Community Edition
* install :
* JDK: All the way to the next step , Try to install it in C Under disc , Do not use Chinese names ---- Don't try to run it ( Equivalent to car oil )
* IDEA: All the way to the next step , stay create desktop shortcut Chu Jiang 64-bit launchar tick , To create a desktop shortcut
* Download daily content :
* Open browser , Enter in the address field doc.canglaoshi.org/tts, enter
* find cgb2202, find 01_ Language foundation , find day01, Download the compressed package inside
<> note :
*
java development environment :
*
Compile run process :
*
Compilation period :.java source file , Compiled , generate .class Bytecode file
*
Operation period :JVM load .class And run .class(0 and 1)
characteristic : Cross platform , One time programming is used everywhere
*
Noun interpretation :
*
JVM:java virtual machine
load .class And run .class
*
JRE:java Operating environment
In addition to including JVM It also includes running java Environment necessary for the program
JRE = JVM+java System class library ( Small parts )
*
JDK:java Development Kit
In addition to including JRE It also includes development java Command tools necessary for the program
JDK = JRE+ compile , Run command tools such as
explain :
* function java The minimum environment for the program is JRE
* development java The minimum environment for the program is JDK
*
IDEA:
*
JetBrains Corporate , Divided into Community Edition ( franco ) Final edition ( rechargeable )
*
Development steps :
*
newly build Java project / engineering ------------------------- residential quarters
*
newly build Java package ------------------------------------ floor + unit
*
newly build Java class ------------------------------------ house
main in :System.out.println(“hello world”);
The code is as follows :
package day01; // Declaration package day01( floor + unit ) public class HelloWorld { // Declaration class HelloWorld( house )
// Main method , For the entry of the program ( The gate ), Program execution from main start ,main End the program public static void main(String[] args
) { // output hello world //1) Strictly case sensitive //2) All symbols must be in English //3) Every sentence must end with a semicolon System.out.
println("hello world"); // Output as is in double quotation marks System.out.println(" Welcome to Dane "); } }
*
notes : Explanatory text ( The computer does not execute )
* Single-Line Comments ://
* multiline comment :/* */------------------- Not until tomorrow
* Documentation Comments :/** */------------------API Shi Shuo
<> Essence note :
*
java development environment :
*
Compile run process :
*
Compilation period :.java source file , Compiled , generate .class Bytecode file
*
Operation period :JVM load .class And run .class(0 and 1)
characteristic : Cross platform , One time programming is used everywhere
*
Noun interpretation :
*
JVM:java virtual machine
load .class And run .class
*
JRE:java Operating environment
In addition to including JVM It also includes running java Environment necessary for the program
JRE = JVM+java System class library ( Small parts )
*
JDK:java Development Kit
In addition to including JRE It also includes development java Command tools necessary for the program
JDK = JRE+ compile , Run command tools such as
explain :
* function java The minimum environment for the program is JRE
* development java The minimum environment for the program is JDK
*
IDEA:
* JetBrains Corporate , Divided into Community Edition ( franco ) And final edition ( rechargeable )
* Development steps :
* newly build Java project / engineering ------------------------- residential quarters
* newly build Java package ------------------------------------ floor + unit
* newly build Java class ------------------------------------ house
* notes : Explanatory text ( The computer does not execute )
* Single-Line Comments ://
* multiline comment :/* */------------------- Not until tomorrow
* Documentation Comments :/** */------------------API Shi Shuo
<> supplement :
* IDE: Integrated development environment , A set of powerful tools with graphical interface , Common are IDEA and Eclipse
* Java Used to be Sun company , however Sun Has been Oracle Acquired , So now java yes Oracle Corporate
* Java It's open source ( Open source ) of , Free language
supplement : English words that will be used tomorrow , I have to meet you when I say it tomorrow , It's best to recite it
1. word : 1)int: integer 2)long: Long integer 3)double: float 4)boolean: Boolean type 5)char: character 6)true: really 7)
false: false 8)unicode: Unified code , Universal code , unicode 9)age: Age 10)score: achievement 11)demo: example 12)var: variable 13)data:
data 14)type: type 2. conversion : 1G=1024M( Omen ) 1M=1024KB( Kilobyte ) 1KB=1024B( byte ) 1B=8bit( position )
Technology
Daily Recommendation