In early 2002, Java was studied and Java development projects were applied because of the company's business needs. Because the project time is tight, there is no sufficient time system to learn Java, the Java learning can only be a project need to use what, learn what, this learning method of getting started quickly, but not solid, in the future work, because the Java study is not solid, have suffered a lot. Now I study the application of Java has been 1.5 of the time, Java has had a certain experience, to write their own experience, for users to share.
In my personal experience, learning Java should be divided into the following phases:
Java syntax Learning Object-oriented concept establishment Java Basic Class Library learning and learning design pattern application design pattern after a lot of practice, can design pattern
The above six stages, of which the first three phases are for Java, but in Java, in many design patterns of applications, while many features support design patterns, so people who do not know the design pattern is not very good application of Java to do development. 4th, 5 Stages of learning in the first three stages based on learning and application of successful experience. To enter the sixth phase, in the field of software design to play. I am limited by the ability, still in the 4th phase of the learning process, so the first four stages of the description. The fifth to sixth stage is just the inference I make based on my own knowledge, and I have no experience to explain it.
Before I explain these stages of learning, let me say a few words about my learning methods. I usually learn new knowledge in the following three stages
Theoretical study. Through the study of theory, try to understand the concept of new knowledge, after learning only rough understanding of concepts, not with the actual good combination. Deductive phase. Based on the knowledge of the theory, consider the circumstances under which this new knowledge can be applied, where the concept has been applied, and the perceptual knowledge of the new learning is established. Induction stage. Understand the theory from a deeper level.
The following six learning stages of Java illustrate my experience, and each phase will be based on theoretical learning, deduction and induction of three small stages of discussion.
The study of Java grammar
The theoretical study stage of grammar learning is the easiest stage, more than 70% of the Java book is mainly about Java syntax, buy a book, read through it, mainly understand the following: (1) data type, (2) operator, (3) control flow, (4) Class and Class regeneration, (5) Package and interface, (6) Abnormal operation.
In the theoretical learning phase, do not pay attention to the details, as long as the basic Java Grammar has a holistic understanding, can read the sample source code can be.
The next step is the deductive phase, the application of the grammar knowledge to write a simple program. It is best to rely on their own memory, the grammar points are used again (write code best use Notepad), unfamiliar to their own grammar to re-read, with the compiler to check syntax errors. The goal at this stage is to get out of the book and the Java API to write a simple program that reads a Java source code to tell the execution results.
The completion of this stage of study, to participate in SCJP examination, should be achieved higher results.
On the basis of the deduction stage, according to their own mistakes, summed up the Java difficulties. Re-read the grammar book and rearrange the concepts that are not clear to you, and your understanding of Java syntax is deeper than when you first read it.
I was just beginning to learn Java, just a cursory look at the grammar book, began to edit the program, encountered do not understand to read the grammar book, so that can become a qualified programmer, but when I became team leader, in order to train the group of Java programming, But found himself out of the Java Grammar book and Java API, unexpectedly will not much (Java integrated development tools have hints), in order to train, I learned again Java syntax, very rewarding.
In fact, a good programmer, not only to write a good program, more importantly, the written procedures can be said clearly: (1) to clarify the function of the program (2) to explain the structure of the program. The basis of the structure of the program is to be familiar with Java syntax. Want to be a good programmer, must be on the basis of learning grammar, continuous practice, and constantly summed up, eventually can be divorced from the grammar book, the Java Grammar System explained clearly.
The establishment of object-oriented concept
Java is an object-oriented development tool, when using Java development application, must understand the object-oriented programming concept. After learning the Java syntax, you should establish the concept of OOP.
In the theoretical learning phase, you should first understand class and object, understand class, interface, abstract class, understand the inheritance of OOP, encapsulation (public, protected,private) and polymorphism. Then you should be familiar with UML, you can read some simple UML data, basically understand class diagram, state diagram and sequence diagram. Deductive phase, the practice of OOP. The successful paradigm of OOP should be a common 23 design patterns. This phase requires reading and understanding of the design pattern UML diagram and sample code, I recommend the book "Java and Schema", also can visit http://www.jdon.com/designpatterns/index.htm. You don't have to read the schema, just read the UML and code for each pattern. Induction phase, through the deductive phase of learning, realize the benefits of OOP-open to expansion, to modify the closure. Also learn how to use OOP conceptual design in Java.
In the early days of Java programming, I was programmed with process-oriented thinking, not understanding class, interface, abstract class, and the presence of public, protect, and private, until I read the GOF design pattern, To understand the advantages of OOP. But Gof's design pattern is so obscure that when I first read it, I just had an object-oriented concept and didn't understand the design pattern. In contrast, Java and schema are easier to read, but Java and schema are more nonsense, and many of the content can not be read.