Java EE Basics (i)

Source: Internet
Author: User
Tags clear screen create directory

1. Basic Computer knowledge (computer overview)
  • A: What is a computer? Examples of computer applications in life
    • Computer (computer) Full name: Electronic computer, commonly known as computers. It is a modern intelligent electronic device which can operate according to the program, automatically and high-speed processing massive data. A computer consisting of hardware and software that does not have any software installed is called bare metal. Common forms are desktop computers, laptops, mainframe computers, and so on.
    • Application examples
      • 1: Scientific calculation
      • 2. Data processing
      • 3. Automatic control
      • 4. Computer Aided design
      • 5. Artificial Intelligence
      • 6. Multimedia applications
      • 7. Computer network
      • ...
  • B: What is hardware? Examples of hardware

    • Computer hardware (computer Hardware) refers to a computer system consisting of electronic, mechanical and optoelectronic components, such as a variety of physical devices collectively. These physical devices constitute an organic whole to provide the material basis for the computer software operation according to the requirements of the system structure.
    • Von. Neumann architecture
    • The hardware of a computer is divided into 5 components: an operator, a controller, a memory, an input device, and an output device.

      • The operators and controllers are the cores of the computer, collectively known as central processing units (processing UNIT,CPU) or processors. There are also some high-speed storage units inside the CPU, called registers. Where the operator performs all arithmetic and logic operations, the controller is responsible for removing the instruction from the memory, decoding and issuing various control commands to the computer, while the register provides the processing unit with the data required for operation.
      • Memory is a memory part of a computer that is used to store programs and data involved in a program. It is divided into internal memory and external memory. The internal memory is used to store the program being executed and the data used, its cost is high, the capacity is small, but the speed is fast. External memory can be used for long-term preservation of a large number of programs and data, low cost, large capacity, but slower.
      • Input devices and output devices are collectively referred to as external devices, referred to as peripheral or I/O devices, for human-computer interaction and inter-machine communication. Microcomputers commonly used in the input device has a keyboard, mouse, etc., the output device has a display, printer and so on.
  • C: What is software? Software classification and examples
    • Computer software (computer software) is an essential thing in the process of using a computer, and computer software can make the computer complete certain 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 minesweeper
2. Basic computer knowledge (software development and computer language overview)
    • A: What is software
      • A collection of computer data and instructions organized in a specific order
    • B: What is development
      • The process of making software
    • C: What is software development
      • Build software with development tools and computer language
    • D: What is computer language
      • A special language for communicating information between people and computers
    • E: Classification of computer languages
      • Machine language:
        • Machine language is a computer language that is expressed directly in binary code instruction, which is a string of code consisting of 0 and 1, they have a certain number of digits and are divided into segments, and the coding of each segment represents different meanings.
      • Assembly:
        • Assembly language is to use some special symbols to replace the machine language binary code, the computer can not directly identify, need to use a software to translate assembly language into machine languages.
      • Advanced Language:
        • The source code is written in plain English, and the source code is translated by the compiler into a machine language that is directly recognized by the computer and then executed by the computer.
        • High-level languages include C,c++,c#,java
3. Basic Computer Knowledge (man-machine interaction)
    • A: Two ways of human-computer interaction
      • A: Command line mode
        • You need to have a console, enter specific instructions, and let the computer do some work. More trouble, need to record some commands.
      • B: Graphical interface mode
        • This method is simple and intuitive, the user is easy to accept, easy to operate.
4. Basic Computer Knowledge (keyboard function keys and shortcut keys)
    • A: keyboard function keys
      • A:tab
      • B:shift
      • C:ctrl
      • D:alt
      • E: space
      • F:enter
      • G:window
      • H: up or down key
      • I:PRTSC (printscreen) screen
    • B: Keyboard shortcuts
      • A:ctrl+a Select All
      • B:ctrl+c replication
      • C:ctrl+v paste
      • D:ctrl+x Cut
      • E:ctrl+z Revocation
      • F:ctrl+s Save
5. Basic computer knowledge (how to open DOS console)
    • How do I open the DOS console under A:XP?
      • A: Start--Program--Attachments--command prompt
      • B: Start-run--cmd--Enter
      • c:win+r--cmd--Enter
    • How do I open the DOS console under b:win7?
      • A: Start--All Programs--attachments--command prompt
      • B: Start-search programs and files--cmd--enter
      • c:win+r--cmd--Enter
    • How to open the DOS console under C:win8
      • A: Left mouse click Start--down arrow--command prompt
      • B: Mouse Right click Start--Search--cmd--Enter
      • C: Mouse Right click Start-run--cmd--Enter
      • d:win+r--cmd--Enter
6, the basic knowledge of the computer (common DOS commands explained)
    • A:D: Enter drive letter Toggle
    • B:dir (directory): List files and folders in the current directory
    • C:CD (change directory) changes the specified directory (enter the specified directory)
    • D:CD. : Back to the top level directory
    • E:cd\: Go back to the root directory
    • F:CLS: (Clear screen) clear
    • G:exit: Exit DOS command line (need to master on split line, understanding below)
    • /=========================================================
    • MD (Make directory): Create directory
    • RD (remove directory): Delete directory
    • Del (delete): Delete files, delete a bunch of suffix names like files *.txt
    • Notepad creating a file
    • Delete a folder with content
      • RD +/S folder name (asking whether to delete)
      • RD +/q +/S folder name (delete directly)
7. Java Language Basics (Java language Overview)
  • The history of A:java language
    • James Goslin James Gosling received a BS in computer Science from the University of Calgary in Canada in 1977, a PhD in computer science from Carnegie Mellon University in 1983, and worked at IBM after graduating to design IBM's first generation workstation news system, but it was not appreciated. Later transferred to Sun, 1990, and Patrick,naughton and Mike Sheridan and other people to cooperate "Green plan", later developed a set of languages called "Oak", then renamed Java.
    • SUN (Stanford University Network, Stanford University Internet company)
  • B:java language version
    • jdk 1.1.4 sparkler gem 1997-09-12
    • JDK 1.1.5 Pumpkin pumpkin 1997-12-13
    • JDK 1.1. 6 Abigail Abigail--woman name 1998-04-24
    • JDK 1.1.7 Brutus Brutus--Roman statesman and general 1998-09-28
    • JDK 1.1.8 Chelsea Chelsea-city name 1999-04-08
    • J2SE 1.2 Playground stadium 1998-12-04
    • j2se 1.2.1 None none 1999-03-30
    • j2se 1.2.2 Cr Icket cricket 1999-07-08
    • j2se 1.3 Kestrel American Red Falcon (sǔn) 2000-05-08
    • j2se 1.3.1 Ladybird Ladybug 2001-05-17
    • Li>j2se 1.4.0 Merlin Gray back Hayabusa 2002-02-13
    • j2se 1.4.1 Grasshopper grasshopper 2002-09-16
    • j2se 1.4.2 Mantis Mantis 2003-0 6-26
    • javase 5.0 (1.5.0) Tiger Tigers
    • javase 5.1 (1.5.1) Dragonfly Dragonfly
    • javase 6.0 (1.6.0) musta ng Mustang
    • javase 7.0 (1.7.0) Dolphin Dolphin
  • C:java Language Platform
    • J2SE (Java 2 Platform standard Edition) edition
      • is a solution for developing common desktop and business applications, which is the basis for a number of other desktop applications to be developed
    • J2ME (Java 2 Platform micro Edition) Mini version
      • is a solution for developing electronic consumer products and embedded devices
    • EE (Java 2 Platform Enterprise Edition) Corporate Edition
      • is a set of solutions for developing applications in an enterprise environment, including technologies such as Servlets, JSPs, etc., primarily for web application development
  • C:java language Features
    • Simplicity of
    • Explanatory nature
    • Object oriented
    • Performance
    • Distributed processing
    • Multithreading
    • Robustness
    • Dynamic
    • Structurally neutral
    • Security
    • Open source
    • Cross-platform
8. Java Language Foundation (Java language Cross-platform principle)
    • A: What is cross-platform
    • B:java Language Cross-platform principle
      • Just install a Java Virtual machine (JVM Java VM) on the operating system that needs to run the Java application. The JVM is responsible for the operation of the Java program in the system.
    • C:java language cross-platform illustration
      • Write once, run anywhere! (one compile, run everywhere)
9. Java Language Foundation (Overview of JRE and JDK)
    • A: What is a JRE
      • including Java virtual machines (JVM Java) and the core class libraries required by Java programs, if you want to run a well-developed Java program, you only need to install the JRE on your computer.
      • jre:jvm+ class Library.
    • B: What is a JDK
      • The JDK is available to Java developers, which includes Java development tools and the JRE. So with the JDK installed, you don't have to install the JRE separately.
      • Development tools: Compilation Tools (Javac.exe) packaging Tools (Jar.exe), etc.
      • Development tools for Jdk:jre+java.
    • C: Why the JDK contains a JRE
      • Why does the JDK include a JRE?
        • After the development of the program, you need to run a look at the effect.
    • The role and relationship of D:JDK,JRE,JVM
10. Java Language Foundation (download and installation process diagram of JDK)
    • Download of A:JDK
      • A: official website http://www.oracle.com
      • B: Demo Download process
    • Installation of B:JDK
      • A: Fool-type installation
        • Double-click the installer and then go all the way next (but not recommended)
      • B: Recommended way to install
        • The installation path does not have Chinese or special symbols such as spaces.
        • All development related software is the best installation directory unified.
          • Example: my JDK installation path
            • D:\develop\Java\jdk1.7.0_72
        • When prompted to install the JRE, you can choose not to install. Recommended or installed.
      • C: Demo installation process
        • You can set up a folder on the D drive first develop
        • Then demonstrate the installation process
    • C: Verify the installation is successful
      • A: Through the DOS command, switch to the JDK installation bin directory.
        • D:\develop\Java\jdk1.7.0_72\bin
      • B: Then enter Javac and Java separately, if some content is displayed correctly, the installation is successful.
11. Java Language Foundation (directory interpretation under JDK installation path)
    • A:bin directory: This directory is used to store some executable programs.
      • such as Javac.exe (Java compiler), Java.exe (Java Runtime Tool), Jar.exe (Packaging tool) and * Javadoc.exe (document Generation tool), etc.
    • B:DB directory: The DB directory is a small database.
      • Starting with JDK 6.0, a new member, JAVADB, is referenced in Java, a pure Java implementation, open source database management system. This database is not only lightweight, but also supports all JDBC 4.0 specifications, when learning jdbc, no more need to install a database software, choose to use JAVADB directly.
    • C:jre directory: "JRE" is the abbreviation for Java Runtime environment, meaning Java Program Runtime environment. This directory is the root of the Java Runtime Environment, which includes Java virtual machines, runtime class packages, Java application initiators, and a bin directory, but does not include development tools in the development environment.
    • D:include directory: Because the JDK is implemented through C and C + +, you need to introduce some C-language header files at startup, which is used to store these header files.
    • E:lib Directory: LIB is the abbreviation for the library, meaning the Java class library or library file, which is the archive package file used by the development tool.
    • F:src.zip file: Src.zip is a compressed file for the SRC folder, and the source code for the JDK core class is placed in SRC, which allows you to view the source code of the Java base class.
12. Java Language Basics (Introduction to Java development tools)
    • A:notepad (Microsoft OS comes with)
    • b:editplus/notepad++
    • C:eclipse
    • D:myeclipse
      • Give us a brief introduction to these tools and then tell us the order in which we use them.
      • Basic class: First Notepad, then EditPlus, then Eclipse.
      • Employment classes: MyEclipse and Eclipse are used.
13, the Java Language Foundation (HelloWorld case writing and running)
    • A: Defining classes
    • B: Write the Main method
    • C: Write Output statement
    • D:java Program Development operation and working principle
    • E: Compiling and running the program

      class HelloWorld {    public static void main(String[] args) {        System.out.println("HelloWorld");    }}
14. Java Language Foundation (HelloWorld case FAQ)
    • A: File not Found
      • A: File name extension shadowing causes compilation to fail
      • B: The file name is wrong
    • B: Word spelling problems
      • A:class written as Class
      • B:string writes string
      • C:system written system
      • D:main written Mian
      C: Bracket Matching problem
      • A: Remove the curly braces from the class body
      • B: Remove the curly brace from the method body
      • C: Cut out the curly brace of the output statement.
      D: Chinese and English issues
      • A: Message: Error: illegal character: \???? The format
      • Note: English characters are basically required in Java programming
15. Java Language Foundation (Java language Writing format (conventional))
    • 1, curly braces to align, and write in pairs
    • 2, there is a space in front of the left curly brace
    • 3, the left curly brace to indent, Tab
    • 4. Blank line between method and program block makes the program look clear
    • 5, add spaces between statements, such as for statement
    • 6, plus spaces on both sides of the operator
16, the Java Language Foundation (PATH environment variable function and configuration Way 1)
    • A: Issues that are prone to developing programs in the bin directory of the JDK
      • A: If there are too many files, it is inconvenient to manage
      • B: Delete the unwanted files that you have written, and may accidentally remove the tool from the JDK.
    • B: How to solve the problem?
      • Notepad why a command like this can be executed under any path, configure the PATH environment variable
    • C: How to configure
      • A:XP system
        • Right click on desktop computer → select Properties → select advanced tab → Click environment variables → find path→ in system variable double-click path→ to add the bin directory under the JDK installation directory to the leftmost and add a semicolon.
      • B:WIN7/WIN8 system
        • Right click on desktop computer → select Properties → select advanced system settings → select advanced tab → Click environment variables → find path→ under System variables double-click path→ to add the bin directory under the JDK installation directory to the leftmost and add a semicolon.
    • Path is configured with an executable file. exe, which can be configured to access executable files under Path paths under different drive characters
17. Java Language Foundation (PATH environment variable configuration Method 2)
    • A: Configure Java_home First
    • B: Modify Path again
    • C: Finally, the path is a sequential relationship.
18. Java Language Foundation (the role of CLASSPATH environment variable and its configuration)
    • A: Why to configure Classpath
    • Principle of B:classpath Configuration
    • C: How to configure Classpath

    • The difference between path and classpath

      • Path is configured with an executable file. exe, which can be configured to access executable files under Path paths under different drive characters
      • Classpath configuration Java class file, which is the. class file
19. Java Language Foundation (EditPlus development Program and compile and run)
    • A: Configure shortcut key compilation run
    • B: Remove backup files
20. Java Language Basics (Overview of annotations and their classification)
    • A: What is a comment
    • B: Classification and explanation of notes

      • Documentation comments not at the moment, said the following explanation
    • The role of annotations

      • A: Explanation Procedure
      • B: Help Us Debug errors
21. Java Language Foundation (keyword overview and use)
    • A: What is a keyword
      • Words that are given a specific meaning by the Java language
    • B: Features of the keyword
      • The letters that make up the keywords are all lowercase
    • C: Common Keywords
      • public static void class, etc.
    • D: Keyword Considerations
      • Goto and const exist as reserved words, not currently used, advanced notebooks like editplus, with special color tags for keywords, very intuitive
22. Java Language Basics (Overview and composition rules for identifiers)
    • A: What is an identifier
      • Is the sequence of characters to use when naming classes, interfaces, methods, variables, etc.
    • B: constituent rules of identifiers
      • English uppercase and lowercase letters
      • numeric characters
      • $ and _
    • C: identifier Considerations
      • 1, cannot use keyword
      • 2, cannot start with a number
23. Java Language Foundation (common naming rules in identifiers)
    • See the name of the idea
    • A: Package
      • Preferably the domain name upside down, requiring all the letters lowercase
    • B: Class or interface
      • If a word is capitalized in the first letter
      • If it is more than one word, capitalize the first letter of each word (Hump mark)
    • C: Method or Variable
      • If it is a word all lowercase
      • If multiple words, capitalize from the first letter of the second word
    • D: constant
      • If it is a word, all the letters are capitalized
      • If there are multiple words, all the words are capitalized, and the words are underlined to distinguish each word

Java EE Basics (i)

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.