The first knowledge of Java Base series java__ storage
Source: Internet
Author: User
Write code:1, clear demand. What I'm going to do. 2, analysis of ideas. What am I going to do? 3, determine the steps. What statements, methods, and objects are used in each part of the idea. 4, code implementation. Use the specific Java language code to reflect the idea. (Gaze is absolutely necessary!)
At the beginning of study, oneself can follow this kind of pattern to walk completely, must want good idea to go to operation again. Writing code is like you are going to travel, do not want to go directly to the destination, aimless to go, so down, you can not harvest the beautiful scenery, also do not reach you want to travel purposes. Full of tired home ~ no sense. Programming, learning is thought rather than code, do not think that they will knock on the code is equal to learn to program! This is a big mistake, knocking code is just the basic function of an IT porter! This is also learning the same thing, but out of employment to get the wages are not the same reason. Enterprises, need is not a porter, but also the so-called code farmers, knocking every day can get paid off the people called programmers. They need the elite, is a strict programming logic master, can adapt to the development of the times and know extrapolate programmers. Why it is always in lack of talent, is the word of talent, not people, those who are eliminated is always the porters. Of course, back to the beginning of learning Java, will knock code is the most basic requirements. While learning new technologies, be sure to pay attention to four points: 1, what the technology is. 2, what is the feature of the Technology (use note): 3, how the technology is used. 4. When will the technology be used? Now, let's take a look at Java history. One: Java Overview:1991 Sun company James Gosling and other people began to develop the language named Oak, hope to control embedded in the cable TV Exchange box, PDA and other microprocessors, in 1994, the Oak language renamed to Java; three technical architectures for Java:java EE:Java Platform Enterprise Edition, the development of enterprise environment applications, mainly for the development of web programs; javase:Java Platform Standard Edition, the completion of desktop application development, is the basis of the other two; Javame:Java Platform Micro Edition, the development of electronic consumer products and embedded devices, such as mobile phone procedures; 1,jdk:java Developmentkit,Java development and running environment, Java development tools and JRE. 2,jre:java runtimeenvironment,Java program's running environment, Java runs the required class library +JVM (Java Virtual machine). 3, configure environment variables:The tools in the Java Jdk\bin directory can be run in any directory because the tool's directory is told to the system, and the system helps us find the specified directory when using the tool. Configuration of environment variables:1 ):Permanent configuration: java_home=% installation path%\JAVA\JDK Path=%java_home%\bin 2 ):Temporary configuration mode: Set path=%path%; C:\Program Files\java\jdk\bin Features: The system defaults first to the current path to find the program to execute, if not, and then go to the path set in the route to find. classpath Configuration:1 ):Permanent configuration mode: classpath=.; C:\;e:\ 2 ):Temporary configuration mode: Set classpath=.; C:\;e:\ Note:When defining a CLASSPATH environment variable, if you do not define an environment variable Classpath,java the JVM is started, the class file to run is found in the current directory, and if CLASSPATH is specified, the class file to run is found under the specified directory. Will you also find it in the current directory. Two cases: 1 ):If the value of the classpath has a semicolon at the end, the running class is not found in the specific path and will be found again by default in the current directory. 2 ):If the value of the classpath results in no semicolon, the running class is not found in the specific path and will not be found in the current directory. Usually do not specify a semicolon, if you do not find the specified directory to run the class file, the error, so you can debug the program. 4,javac Commands and Java commands do something. You know, Java is divided into two parts: one is compilation, the other is running. Javac:Responsible for the compiled part, when the javac is executed, the Java compiler program is started. Compiles the. java file for the specified extension. A bytecode file that the JVM can recognize is generated. That is, the class file, which is the Java running program. Java:The part that is responsible for running. The JVM is started. Loads the class libraries required by the runtime and executes the class file. A file to be executed must have a starting point for execution, and this starting point is the main function.
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