[Move bricks] Getting started with Android (1)-getting started with Java Development, Android java

Source: Internet
Author: User

[Move bricks] Getting started with Android (1)-getting started with Java Development, Android java

01.01 _ basic computer knowledge (Computer Overview) (understanding)

  • A: What is A computer? Examples of computer applications in life
    • Computer: an electronic Computer, commonly known as a Computer. It is a modern smart electronic device that can automatically and quickly process massive data according to the program running. A computer composed of hardware and software that does not have any software installed is called a bare metal. Common forms include desktop computers, laptops, and large computers.
    • Application Example
      • 1: Scientific Computing
      • 2. Data Processing
      • 3. Automatic Control
      • 4. Computer Aided Design
      • 5. Artificial Intelligence
      • 6. Multimedia Applications
      • 7. Computer Networks
      • ...

  • B: What is hardware? Hardware example
    • Computer Hardware refers to various physical devices in Computer systems, including electronic, mechanical, and Photoelectrical components. These physical devices constitute an organic whole as required by the system structure to provide a material basis for the operation of computer software.
    • Feng nuoman Architecture
    • The hardware of a computer is divided into five major components: the host, controller, memory, input device, and output device.
      • The splitter and controller are the core of the computer, collectively referred to as the Central Processing Unit (CPU) or processor. There are also some high-speed storage units inside the CPU, called registers. The generator executes all arithmetic and logical operations. The controller extracts commands from the memory one by one and sends various control commands to the computer after decoding; registers provide the data required for operations for the processing unit.
      • Memory is the memory of a computer, used to store programs and data involved in programs. It is divided into internal memory and external memory. The internal memory is used to store the program being executed and the data used. It is of high cost, small capacity, but fast. External memory can be used to store a large amount of programs and data for a long time. Its cost is low, its capacity is large, but its speed is slow.
      • The input and output devices are collectively referred to as external devices, or peripherals or I/O devices for human-computer interaction and inter-machine communication. Commonly used input devices in a microcomputer include keyboards and mouse, and output devices include monitors and printers.

  • C: What is software? Software classification and Examples
    • Computer Software is essential to the use of computers. Computer Software allows computers to complete specific functions in a predetermined order.
    • Computer software is divided into system software and application software according to its function
      • System software: DOS (Disk Operating System), Windows, Linux, Unix, Mac, Android, iOS
      • Application Software: office QQ chat YY language clearance


01.02 _ basic computer knowledge (software development and computer language Overview) (understanding)

  • A: What is software?
    • A set of computer data and commands organized in a specific order
  • B: What is development?
    • Software Production Process
  • C: What is software development?
    • Use development tools and computer languages to make software
  • D: What is computer language?
    • A special language for communication between people and computers
  • E: Classification of computer languages
    • Machine language:
      • Machine language is a computer language directly expressed using binary code instructions. commands are a string of code consisting of 0 and 1. They have a certain number of digits and are divided into several segments, the encoding of each segment indicates different meanings.
    • Assembly language:
      • The assembly language uses some special symbols to replace the binary code of the machine language. The computer cannot identify it directly and must translate the assembly language into the machine language using a software.
    • Advanced language:
      • Compile the source code in normal English, translate the source code into a machine language that is directly recognized by the computer through the compiler, and then run by the computer.
      • Advanced languages include C, C ++, C #, and JAVA


01.03 _ basic computer knowledge (Human-Computer Interaction) (understanding)

  • A: Two Ways of Human-Computer Interaction
    • A: Command Line
      • A console is required to enter specific commands for the computer to complete some operations. This is troublesome. You need to record some commands.
    • B: graphical interface
      • This method is simple, intuitive, and easy to use.


01.04 _ basic computer knowledge (keyboard function keys and shortcut keys) (master)

  • A: keyboard function key
    • A: Tab
    • B: Shift
    • C: Ctrl
    • D: Alt
    • E: Space
    • F: Enter
    • G: Window
    • H: Upper/lower left keys
    • I: PrtSc (PrintScreen) Screen
  • B: keyboard shortcuts
    • A: Ctrl + A select all
    • B: Ctrl + C copy
    • C: Ctrl + V Paste
    • D: Ctrl + X cut
    • E: Ctrl + Z undo
    • F: Ctrl + S save

01.05 _ basic computer knowledge (how to open the DOS console) (master)

  • A: In xp, how does one open the DOS console?
    • A: start -- program -- attachment -- command prompt
    • B: start -- run -- cmd -- press ENTER
    • C: win + r -- cmd -- press ENTER
  • B: How do I open the DOS console in win7?
    • A: start -- all programs -- attachments -- command prompt
    • B: start -- search for programs and files -- cmd -- press ENTER
    • C: win + r -- cmd -- press ENTER
  • C: How to open the DOS console in win8
    • A: left-click the start button, down arrow, and command prompt.
    • B: Right-click and choose Start> Search> cmd> press Enter.
    • C: Right-click and choose Start> RUN> cmd> press Enter.
    • D: win + r -- cmd -- press ENTER

01.06 _ basic computer knowledge (Common doscommands)

  • A: d: Enter the drive letter to switch
  • B: dir (directory): list files and folders in the current directory.
  • C: cd (change directory) change the specified directory (enter the specified directory)
  • D: cd ..: Return to the directory above level
  • E: cd \: Return to the root directory
  • F: cls: (clear screen) clear screen
  • G: exit the doscommand line (you need to know about splitting lines)
  • /======================================================== ============================
  • Md (make directory): Creates a directory.
  • Rd (remove directory): deletes a directory.
  • Del (delete): delete a file and delete a bunch of files with the same suffix *. txt
  • Notepad File Creation
  • Delete a folder with content
    • Rd +/s folder name (ask whether to delete)
    • Rd +/q +/s folder name (delete directly)

01.07 _ Java language basics (Java language Overview) (understanding)

  • A: Java Language Development History
    • James Gosling received a bachelor's degree in computer science from the University of Calgary, Canada in 1977, a doctorate degree in computer science from Carnegie Mellon University in 1983, and a job in IBM after graduation, design the IBM first-generation workstation NeWS system, but not take it seriously. Later, I moved to Sun. In 1990, I worked with Patrick, Naughton, Mike Sheridan, and others on the "Green Plan". Later I developed a language called "Oak" and renamed it Java.
    • SUN (Stanford University Network, Stanford University Network Company)
  • B: Java version
    • JDK 1.1.4 Sparkler gem
    • JDK 1.1.5 Pumpkin 1997-12-13
    • JDK 1.1.6 Abigail El-Women's name
    • JDK 1.1.7 Brutus brutu-Ancient Roman politicians and generals
    • JDK 1.1.8 Chelsea-city name
    • J2SE 1.2 Playground Sports Ground
    • J2SE 1.2.1 none
    • J2SE 1.2.2 Cricket
    • J2SE 1.3 Kestrel American Falcon (s release n)
    • J2SE 1.3.1 Ladybird ladybug
    • J2SE 1.4.0 Merlin grey back Falcon 2002-02-13
    • J2SE 1.4.1 grasshopper 2002-09-16
    • J2SE 1.4.2 Mantis 2002003-06-26
    • JAVASE 5.0 (1.5.0) Tiger
    • JAVASE 5.1 (1.5.1) Dragonfly
    • JAVASE 6.0 (1.6.0) Mustang
    • JAVASE 7.0 (1.7.0) Dolphin
  • C: Java platform
    • J2SE (Java 2 Platform Standard Edition) Standard Edition
      • Is a solution for developing common desktop and business applications. This technical system is the basis of the other two and can complete the development of some desktop applications.
    • Small Edition of Java 2 Platform Micro Edition
      • Is a solution for developing electronic consumption products and embedded devices.
    • J2EE (Java 2 Platform Enterprise Edition) Enterprise Edition
      • It is a set of solutions for developing applications in an enterprise environment. The technologies included in this technical system include Servlet and Jsp, which are mainly used for Web application development.

  • C: Java features
    • Simplicity
    • Explanatory
    • Object-oriented
    • High Performance
    • Distributed Processing
    • Multithreading
    • Robustness
    • Dynamic
    • Structure neutral
    • Security
    • Open Source
    • Cross-platform

01.08 _ Java language basics (cross-platform Java Principles) (master)

  • A: What is cross-platform
  • B: Principles of cross-platform Java
    • You only need to install a java Virtual Machine (JVM Java Virtual Machine) on the operating system where you want to run the java application. JVM is responsible for running Java programs in this system.
  • C: cross-platform diagram of Java language
    • Write once, run anywhere! (One compilation, run everywhere)

01.09 _ Java language basics (Overview of JRE and JDK) (master)

  • A: What is JRE?
    • Including the core class libraries required by Java Virtual Machine (JVM Java Virtual Machine) and Java programs. To run a developed Java program, you only need to install JRE on the computer.
    • JRE: JVM + class library.
  • B: What is JDK?
    • JDK is provided for Java developers, including java development tools and JRE. Therefore, if JDK is installed, you do not need to install JRE separately.
    • Development tools: compilation tool (javac.exe) Packaging tool (jar.exe) and so on
    • JDK: a development tool for JRE + JAVA.
  • C: Why does JDK contain a JRE?
    • Why does JDK contain a JRE?
      • After the program is developed, you need to run it to see the effect.

  • D: Functions and relationships of JDK, JRE, and JVM

01.10 _ Java language basics (diagram of JDK download and Installation Process) (learn more)

  • A: Download JDK
    • A: Official http://www.oracle.com
    • B: demonstrate the download process.
  • B: JDK Installation
    • A: Installation with dummies
      • Double-click the installer and click next (but not recommended)
    • B: Recommended installation methods
      • Do not include Chinese characters or special characters such as spaces in the installation path.
      • It is best to install a uniform directory for all development-related software.
        • Example: My JDK installation path
          • D: \ develop \ Java \ jdk1.7.0 _ 72

      • If you are prompted to install JRE, you can choose not to install it. We recommend that you install it.
    • C: demonstrate the installation process
      • You can create a folder develop on disk D first.
      • Then demonstrate the installation process

  • C: verify whether the installation is successful.
    • A: Use the doscommand to switch to the bin directory installed by JDK.
      • D: \ develop \ Java \ jdk1.7.0 _ 72 \ bin
    • B: Enter javac and java respectively. If some content is displayed normally, the installation is successful.

01.11 _ Java language basics (directory explanation under the JDK installation path) (learn more)

  • A: bin directory: This directory is used to store some executable programs.
    • For example, javac.exe(java.exe(java runtime tool, jar.exe (Packaging tool) and * javadoc.exe (document generation tool.
  • B: db Directory: the db directory is a small database.
    • Since JDK 6.0, Java has referenced a new member JavaDB, which is a pure Java implementation and open source database management system. This database is lightweight and supports all the specifications of JDBC 4.0. When learning about JDBC, you no longer need to install an additional database software. You just need to use JavaDB directly.
  • C: jre Directory: "jre" is the abbreviation of Java Runtime Environment, which indicates the Runtime Environment of Java. This directory is the root directory of the Java Runtime Environment. It includes the Java Virtual Machine, runtime class packages, Java application starters, and a bin directory, but does not contain development tools in the development environment.
  • D: include Directory: Because JDK is implemented through C and C ++, You need to introduce some C header files during startup. This directory is used to store these header files.
  • E: lib directory: lib is the abbreviation of library, which is a Java class library or library file. It is an archive package file used by development tools.
  • F: src.zip file: src.zip is a compressed file in the src folder, where the source code of the JDK core class is placed. You can view the source code of the Java basic class through this file.

01.12 _ Java language basics (Java Development Tool introduction) (understanding)

  • A: notepad (included in the Microsoft operating system)
  • B: Editplus/Notepad ++
  • C: Eclipse
  • D: MyEclipse
    • Let's briefly introduce these tools and then explain the sequence in which we use them.
    • Basic Course: notepad, Editplus, and Eclipse.
    • Job class: Both MyEclipse and Eclipse are used.

01.13 _ Java language basics (Compiling and running HelloWorld cases) (master)

  • A: define A class
  • B: Write the main method.
  • C: Write output statement
  • D: Java program development and operation principle
  • E: Compile and run the program to copy the code

01.14 _ Java language basics (HelloWorld case Frequently Asked Questions) (master)

  • A: No files can be found. (all of them are shown to show the students what the problem is)
    • A: compilation fails because the file extension is hidden.
    • B: The file name is wrong.
  • B: spelling of words (all of them are shown to show students what is wrong)
    • A: Write the class
    • B: String.
    • C: System.
    • D: The main is written as mian.
  • C: Question of matching parentheses (all of them are shown to show students what is wrong)
    • A: remove the braces of the class.
    • B: remove the braces OF THE METHOD body.
    • C: remove the parentheses of the output statement.
  • D: Questions in both Chinese and English. (let the students see what the problem is)
    • A: The message "error: Invalid character :\???? Format
    • Note: java programming basically requires English characters.

01.15 _ basics of Java language (the writing format of Java language (conventions) (master)

  • 1. Braces must be aligned and written in pairs.
  • 2. There is a space in front of the Left braces
  • 3. indent the left braces, Tab
  • 4. Add blank lines between the method and the program block to make the program look clear.
  • 5. Add spaces between side-by-side statements, such as for statements.
  • 6. Add spaces on both sides of the operator

01.16 _ Java language basics (Role of path environment variables and configuration method 1) (master)

  • A: problems that may occur easily when developing programs under the bin directory of JDK
    • A: It is inconvenient to manage too many files.
    • B: Delete unnecessary files you have written. You may accidentally delete the built-in JDK tool.
  • B: How to solve the problem?
    • Why can I execute commands like notepad in any path and configure the path environment variable?
  • C: configuration method
    • A: XP System
      • Right-click desktop computer → select Properties → select Advanced Tab → click environment variable → search for path in system variables below → double-click path → add bin directory under jdk installation directory to leftmost and add semicolon.
    • B: win7/win8 System
      • Right-click desktop computer → select Properties → select Advanced System settings → select Advanced Tab → click environment variable → search for path in system variables below → double-click path → add bin directory under jdk installation directory add a semicolon to the leftmost.

  • The path is configured with Executable File .exe. After configuration, you can access executable files in the path under different drive letters.

01.17 _ Java language basics (Path environment variable configuration method 2) (master)

  • A: Configure JAVA_HOME first.
  • B: Modify the path.
  • C: Finally, the path has a sequential relationship.

01.18 _ basics of Java language (Role and configuration of classpath environment variables)

  • A: Why do you need to configure classpath?
  • B: How classpath is configured
  • C: how to configure classpath
  • Difference between path and classpath
    • The path is configured with Executable File .exe. After configuration, you can access executable files in the path under different drive letters.
    • The java class file configured by classpath is the. class file.

01.19 _ Java language basics (Editplus program development and compilation and running) (understanding)

  • A: configure the shortcut key for compiling and running
  • B: Remove backup files.

01.20 _ Java language basics (comments overview and classification) (master)

  • A: What is annotation?
  • B: Classification and explanation of annotations
    • Document comments are not mentioned at present.
  • Comments
    • A: explanation procedure
    • B: Help us debug errors

01.21 _ Java language basics (keyword overview and usage) (master)

  • A: What is A keyword?
    • Words that are given specific meanings by the Java language
  • B: Characteristics of keywords
    • All the letters that make up the keyword are in lowercase.
  • C: Common keywords
    • Public static void class, etc.
  • D: Key Word considerations
    • Goto and const are reserved words and are not currently used. Advanced notebooks like Editplus have special color tags for keywords, which are very intuitive.

01.22 _ Java language basics (identifiers overview and composition rules) (master)

  • A: What is an identifier?
    • It is the character sequence used to name classes, interfaces, methods, variables, etc.
  • B: identifier composition rules
    • Uppercase/lowercase letters
    • Numeric characters
    • $ And _
  • C: identifier considerations
    • 1. You cannot use keywords.
    • 2, cannot begin with a number

01.23 _ Java language basics (naming rules common in identifiers) (understanding)

  • Mingzhiyi
  • A: Package
    • It is best to put the domain name in reverse order, requiring all letters to be lowercase
  • B: class or interface
    • If the first letter of a word is capitalized
    • If multiple words are entered, the first letter of each word is capitalized (camper)
  • C: method or variable
    • If a word is in lowercase
    • If multiple words are entered, they are capitalized from the first letter of the second word.
  • D: Constant
    • If it is a word, all uppercase letters
    • For multiple words, all words are capitalized and each word is distinguished by an underscore.

01.24 _ day01 conclusion

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.