Some suggestions for beginners of Java

Source: Internet
Author: User

Recently, many beginners of Java asked me a lot of questions, all of which are basic questions. So I thought of writing an article and giving them some suggestions for learning Java. But I was a little scared after I decided to write this article. I was afraid that I would be beaten by others. Why do you give suggestions to others? You are not a great guy. Well, I am not an experienced developer, and I have nothing to show off to guide others. But think about it. I also came from a cainiao step by step. I believe many new beginners have also encountered a similar problem: how to learn Java?

Java Basics
Syntax is the foundation of a language. If it is not strong enough, it cannot be used. This step cannot be crossed. When I first learned the Java syntax, I bought a book by feisi. I forgot the name of the book and thought it was quite simple, but there were many mistakes. The most obvious error is that many codes cannot run. I suggest you download tutorial from Sun's official website. Accurate and clear, complete examples, suitable for beginners. Although it is in English, do not be afraid, because many good technical materials are in English, reading English technical documents requires exercise.

After having some knowledge of Java, I suggest you read the basics again and choose a book to explain the basics of Java in depth. Later I was reading an ebook <beginning Java 5.0>, which explained in depth the basics of the Java language, such as parameter passing and how to store keys and objects in map, the use of hashcode and other underlying principles are also some best practices. After reading the code, you can change it from simply writing code to flexible applications.

People who have read tutorial will find that Java involves a wide range of knowledge, so there must be some trade-off when learning. In addition to Java basics, multithreading, exceptions, I/O processing, and collection classes must be viewed. As for the reason, I will understand it later.

Java Web Application Development started
Most of the students studying Java are engaged in Web application development, so it is inevitable that they will follow this path. There are a lot of frameworks, such as Struts and hibernate, that will make everyone dizzy, especially for beginners of Java. I have to configure XML again later, and I have to get a JNDI later. I feel that I cannot find the north, so I sighed: "Java is hard too !".

For beginners, my advice is not to use these frameworks. You can simply learn JSP, Servlet, JavaBean, and JDBC technologies. Here I would like to recommend a book <Tomcat and Java Web development technology details>, published by the Electronics Industry Publishing House. When I used to learn JSP, I basically jumped around with a book. For more information, see the relevant section. Although I can do something quickly, I always feel that I have not understood enough in some places, and I did expose this problem in later applications. Later, I read this book which was broken down on my desk, and I found that I did not pay attention to many of the previous details. I did not know many knowledge points and wrote a lot of inferior code. So I have been nagging about the basics.

Why do we need to learn these technologies? The simplest reason is that these technologies are relatively simple for applications, and the second reason is that all mainstream web application development frameworks, persistent layer frameworks are highly encapsulated products for these basic technologies, so learning these basic technologies can help you understand the principles of these frameworks and help you improve your skills in the future. Or that sentence: the foundation is very important. Do not rush for success.

Introduce a teacher
Internet: Google and Baidu are the most useful. Why? Recently, I was often asked how to configure strust, how to use action, how to configure the data source, what is this API, and so on, it will be annoying to be asked too much, because these are not technical difficulties at all. You can search by Google to find thousands of information at will. So, i'm a beginner. I'm playing John when I have a big job with a big job. I want to copy 6 Yi's neck. ran Xia Xuan Rao yi Zhang feeding Xia PA playing sulf core Yan look Hui Yu Z Xi Shu g chips lead John Panyi SC plaque copy?

How to start
I am afraid this question is also frequently asked by beginners. I have no projects in my hands. How can I learn it? Is reading a book? It is really difficult for beginners to use a book. If there is no project, I suggest you repeat the code in the book from start to end. Because if you only read a lot of things and do not do it, you cannot clearly understand many problems. It may be a very simple helloworld, and you cannot run it at a time. Therefore, it is best to follow the steps in the book at this time, and it is recommended that you do not use the Eclipse IDE to help development, because this will help you understand the Java operating mechanism, it will be of great help in learning and solving problems in the future.

Summary
The above are some of my suggestions for the Java starters. I hope to help you with some of the reasons. I have no details. After you have learned this, you will understand it yourself. At that time, you will get started, and you will find a way to learn and improve. In the last sentence, you are the most important.

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.