Learning notes-Java initial experience

Source: Internet
Author: User

I have been busy with a Java project recently and have just finished coding. In general, it is inefficient.

Although I have heard of Java for a long time, I have never been touched by the relationship between my major and work content. This time I said that the Java group is really short of people, and the project is not very difficult, so I have the honor to participate.

It took two days to look at the syntax. In fact, the syntax structure is inseparable. The conditions, loops, and judgments are the same language. Then I checked the Java type definition, I think I can be competent for coding alone. After the project was officially launched, the problem was not that simple. The first one is programming habits, Java program structure and.. NET is different, and the Japanese version of eclipse is used (this platform has never been used), so it also encountered difficulties in terms of language and debugging. Second, it was a component problem, structs is unknown before Java is made, and the HTML code of JSP pages does not have the automatic identification function (generally, Web programming platforms have such features. net, Dreamweaver, or even some text editors), it is quite painful to use. If you have used structs, you should know that many page details are incorrect. It always prompts you <HTML: form Action = "XXXX"/> this line has errors, so it is hard to get hurt. Finally, some beans are used. For me who started from scratch, making loop lists and drop-down boxes also makes me want to die. Of course, I am not afraid of people at last. I firmly win it for work and life.

Of course, the meeting is not difficult, but not difficult. Technologies are all learned by people. After learning this course, I also want to talk about my views. Even if you are a newbie or have no Java basics like me, you can listen.

First, the Java language: the syntax structure is relatively easy, mainly to clarify the data type, String, float, integer, date and other commonly used, this is the basis of programming.

Second, Java framework: the current framework of your project must be clear about the role of each package. Otherwise, you do not know what the program can do, because Java is set in the configuration file, it does not mean that.. net. Each ASPX page automatically corresponds to one. CS file.

Third, development platform: In any case, you need to know the simplest usage of the Development Platform (eclipse), create (each type of file), and debug (required ). If Tomcat is used for execution, it must be bound to Tomcat.

Fourth, the development instance: the preparations have been completed, and we will try encoding below. A good start is half the success. How do I start coding? You can't take it for granted. You 'd better find a simple function and complete code to learn. For example, to write a webpage, you must understand Java webpage initialization, control usage, event processing, value transfer, error processing, and function call in order to form a good ideological framework in your mind, otherwise, it will be difficult to figure it out. At the end of the question, object-oriented programming will have to think about the object and then start it.

Fifth, code specification: This is a common problem. Only the specification can make your code clearer, program more organized, and easy to modify.

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.