I. Java DEVELOPMENT environment
1. Configuring the JDK
(1) Get the installation package of the JDK to match the operating system (64X and 32X based)
(2) Installation or decompression, the directory does not have Chinese characters
(3) Configuring environment variables
<1> Open My Computer--Properties--advanced--environment variables
<2> new system variable java_home, stored directory
<3> Select an environment variable named "path" in System variables: Double-click the variable to add the absolute path of the bin directory in the JDK installation path to the value of the path variable, separated by a semicolon with a half-width and an existing path. (variable name: Path; added variable value:%java_home%\bin;%java_home%\jre\bin;)
(4) test, run-cmd-Open Command Prompt window, enter Java
This is the Java environment configuration, which starts eclipse directly after the configuration is complete, and it automates the configuration of the Java environment.
2. Development tools
Eclipse: Chinese
(1) Address: Http://www.eclipse.org/babel
(2) corresponds to its own version
Two. Java Basics
1. Background
Java is a generic term for the Java object-oriented programming language and Java platform introduced by Sun Company. Co-developed by James Gosling and co-workers, and was formally launched in 1995. Originally known as Oak, Java was designed for embedded chips in consumer electronics in the 1991. Renamed Java in 1995 and redesigned to develop Internet applications. The Java-implemented HotJava browser shows the fascination of Java: cross-platform, dynamic web, Internet computing. Since then, Java has been widely accepted and promoted the rapid development of the web, commonly used browsers support Javaapplet. Java technology, on the other hand, is constantly being updated. Since the advent of Java is very popular, rapid development, the C + + language to form a strong impact. In the global cloud computing and mobile Internet industry environment, Java has a significant advantage and broad prospects. 201-year Oracle company acquires Sun.
2. Version
(1) Javase Standard Edition: It allows you to develop and deploy Java applications that are used in desktops, servers, embedded environments, and live environments. Java SE contains classes that support Java WEB Service development and provides the foundation for Java platform,enterprise Edition (Java EE).
(2) Java EE Enterprise Edition: Enterprise Edition helps develop and deploy portable, robust, scalable, and secure server-side Java applications. Built on the Java SE, Java EE provides Web services, component models, management, and communication APIs that can be used to implement enterprise-class service-oriented Architecture and Web 2.0 applications.
(3) Javame Mobile: Java ME provides a robust and flexible environment for applications running on mobile devices and embedded devices such as mobile phones, PDAs, TV set-top boxes , and printers. Java ME includes a flexible user interface, robust security model, many built-in network protocols, and rich support for Web and offline applications that can be dynamically downloaded. Applications based on the Java ME specification need to be written once, can be used for many devices, and can take advantage of the native capabilities of each device.
3. File types
(1). Java Source code files
(2). class byte-code file
(3). Jar Compressed File
4. Features
(1) Object-oriented: The Java language provides primitives such as classes, interfaces, and inheritance, for simplicity, only supports single inheritance between classes, but supports multiple inheritance between interfaces, and supports the implementation mechanism between classes and interfaces. The Java language fully supports dynamic binding, while the C + + language uses dynamic binding only for virtual functions. In short, the Java language is a purely object-oriented programming language.
(2) Cross-platform:
A Java Virtual machine is an imaginary machine that is implemented by software simulations on a real computer. The Java Virtual machine has its own imaginary hardware, such as processor, stack, register, etc., and also has the corresponding instruction system. After the Java language virtual machine is introduced, the Java language does not need to be recompiled when it runs on different platforms. The Java language usage pattern Java Virtual machine masks information related to specific platforms, enabling the Java language compiler to run without modification on multiple platforms by generating only the target code that runs on the Java virtual machine. When a Java virtual machine executes a bytecode, it interprets the bytecode as a machine instruction execution on a specific platform. Bytecode checker, class loader, garbage collection mechanism (artificially uncontrollable, lowest priority). is a cross-platform schematic diagram:
A preliminary acquaintance with Java