Java always has a thousand benefits for you to choose from, but you can find the answer by simply turning over the book or visiting the Internet. In this article, I will write some of my experiences and processes in Learning Java for beginners to make a reference.
In the course of learning Java, I will focus on the following aspects:
1. Always remind yourself that Java is an OOP language tool, not just code. Only in this way can we grasp and use Java as a whole.
2. In the course of learning, it is best to understand the underlying mechanism of Java, rather than just staying on the surface, rather than running the example on the copybook to get the result. You must be patient in thinking about, debugging, and modifying a simple example.
3. In the course of learning, you must start and write code, instead of holding a book and reading it. Many things and experiences must be done by yourself to truly belong to yourself. It is best to participate in some practical projects.
4. After learning a certain stage, you begin to want to do something you have learned. At this time, you should begin to learn more and more complex knowledge, such as the construction of the J2EE platform and the development of EJB. For this part, I suggest you find a thin book to understand it first, and have a general understanding in your mind to get a preliminary understanding of more technical terms. I think it is good to see J2EE technical practices at this stage. It can help you understand the various technologies and frameworks contained in J2EE and provide many practical examples to deepen your understanding of J2EE.
Interest and determination in Learning Java play a key role. With the above basics, I began to learn Java step by step.
Build a Java environment
To run a Java program, you must install JDK. JDK is the core of Java, including the Java compiler, JVM, a large number of Java tools, and basic Java APIs.
JDK 1.4 and 1.31 can be downloaded from the http://Java.sun.com. In my learning environment, version 1.31 is used first.
Decompress and install. Then, set the environment.
1. Perform the following settings for Windows:
Set PATH = YOUR_INSTALL _ DIRin; C: Windows; C: WindowsCommand
Set classpath =.; YOUR_INSTALL_DIRlibools.jar
2. Edit the/etc/profile file for Linux:
JAVA_HOME = your_install_dir/JDK/j2sdk
CLASSPATH = $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/td. jar: $ JAVA_HOME/jr
-E/lib/rt. jar :.
PATH = $ PATH: $ JAVA_HOME/bin
Export PATH PS1 USER LOGNAME MAIL HOSTNAME HISTSIZE HISTFILESIZE
INPUTRC JAVA_HOME CLASSPATH RESIN_HOME
Finally, enter Java on the terminal to check whether the command can be found. If the command can be found, the installation is successful.
The following describes several important JDK commands:
◆ Java execution tool is a command to start JVM (virtual machine) and execute the class (byte code) file;
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