Java programming ideology comments

Source: Internet
Author: User

 

Comments sort

Sources of thinking in Java

The road to learning Java is like taking lessons from the West. Java is the truth to be obtained. We are all saints on the road to Java.

Learning Java is not only difficult to go through, but also the essence of Java. Everyone thinks that the road to Java is not easy, because it is not just Java, there are countless technologies, such as JSP, Servlet, JavaBean, J2EE, struts, spring, hibernate, Database SQL, SOA distributed, cache, JVM, Eclipse, tomcat, HTTP, JSON, etc, they constitute a 9-9-difficulty on the road. Many technologies are centered around Java.

On the way to learning Java, I also experienced difficulties. By writing the story of Java Masters, I made a summary of the layer-by-layer technology on the Java Road. It is also a record and sublimation of what I have seen and heard since I entered the Java World. But at this time, I have a feeling of being hollowed out for Java. I don't think I understand the essence of Java.

By chance, I received an invitation from the liberal arts viewpoint to comment on the English version of thinking in Java. Although I have written many technical books, I am a bit uneasy about this kind of classical Bible-style books. Because the comments made to classic books must be the eye-catching touch on the original text. When I think of this, my heart is even more uneasy! To this end, I re-read this book with a learning and communication mentality.

When I first learned Java, I often recommend it to senior people: "reading this Java programming thought is the true Java learning. It's too simple for Chinese people !" So with worship, reading, dummies, more than 1000 pages, a lot of Essential Analysis, coupled with poor English, read the fur! From then on, it will be shelved.

When should I read this book?

Li Yanhong once said about the development of the Internet: "The time is very important. If you go in too early, you will starve to death. It is too late to have a chance ." In fact, this sentence also applies here. Reading this book too early will be hard to understand, and you will regret why you saw this book too late. This is because, as the title says, it explains the internal idea of Java programming. Reading It is the sublimation of understanding Java only after having a certain degree of Java programming basics and development experience!

Therefore, the biggest role of this book is not to let you "know its nature", but to let you "know its nature "!

How to read this book

The original English version of this book covers all aspects of Java design, syntax, and library, including Java operators, control logic, construction, collection, reuse, polymorphism, interfaces, internal classes, storage, exceptions, strings, types, generics, arrays, containers, I/O, comments, concurrency, and graphical GUI. The original English version is arranged in a hash Based on the habits of Americans. This book divides these chapters into five major sections to make them clearer and more in line with Chinese thinking patterns, each part covers the exclusive content of in-depth analysis.

Part 1 Basic Syntax: operators and control logic

Operators and control logic are the most basic syntax of any language. Java references the advantages of C ++ to develop strengths and circumvent weaknesses. Therefore, its operators are also based on C ++, however, simplified and improved in some aspects. If you are familiar with C ++, you will be familiar with this part. The control statement in Java provides the following keywords: If/else/while/do-while/For/return/break/Continue/switch. Although there is a Goto, but do not use it, it will make the code messy. The GOTO statement has been abandoned in Java.

Part 2 object-oriented: Object creation and destruction, access control, reuse, interfaces, internal classes, and exceptions

This book is the perfect book for class initialization and destruction, which is meticulous, comprehensive, and easy to understand. Access Control has opened up a special chapter to explain the access control relationships between classes and packages in a small manner. To enable everyone to write programs for others, first, the class package structure is clear, and second, the function packaging in the Code is clear.

Part 1 Data Storage: String, array, storage, container

Java. the util package provides a variety of container classes, including collection classes (including the first-in-first-out queue of queue, list of sorted lists that allow duplicates, and set sets that do not allow duplicates) and map (key-value pairs ). This book deeply analyzes the usage and working principles of various implementation classes based on these interfaces. "Containers in depth" is the most in-depth part of the Java container class. It tells you when to use which containers, which are the most useful, why, and how to use them.

Part 1 core functions: Input Output and concurrency

I/O provides a basic library for Java to communicate with external systems, including the console, files, and network. These are all aspects of I/O. The input and output methods include sequential reading, random reading, caching, binary, character, row reading, and byte reading. Therefore, I/O also provides various read/write packaging classes. This book uses a large number of examples to demonstrate the usage and application scenarios of these classes.

Multithreading is compared with a single thread. This book begins with the use of basic threads and runnable, it provides in-depth and comprehensive explanations on thread sleep, priority, daemon, thread Exception Handling, resource sharing, thread control, collaboration with other threads, and deadlocks, it also explains some thread tool classes used in Java.

Part 1 advanced features: type, generic, enumeration, comment

The book explains rtti parsing of classes from class, cast, static analysis, dynamic analysis, dynamic proxy, mock, and other aspects, and uses generic to implement Java extension. JDK 5.0 combines a more common metadata tool into the core Java language through the new function named annotation. For developers, you can not only use JDK built-in annotations, but also use the powerful annotation functions provided by third parties, such as unit test, EJB, and hibernate. You can also customize annotations.

My suggestions

Since AWT and swing are currently in low proportion in actual applications and there are many Chinese books that are good at Interface Programming, the GUI chapter is deleted. In addition, the two chapters at the beginning of this book, namely "Introduction to objects" and "Everything is an object", do not generate any revenue for this book, but readers can download the content with comments from the Internet, the URL is http://www.broadview. com.cn/13521.

Please pay attention to the following two points:

(1) due to the re-arrangement of the commentary, the sequence of the chapters is different from that of the original one. In addition, some chapters are omitted. Therefore, the reference chapters in the book are slightly different from the current situation of the books. We apologize for any inconvenience this may cause.

(2) the text in parentheses after the exercise sequence number of each chapter represents the difficulty level of the exercise (1 ~ 10 ).

Finally, when you read this book, I have two suggestions:

Make timely comments on the classic analysis and code, and compare and summarize them.

Compile the classic instance in the running book on the machine, try different running results, and analyze the intention of the Code.

I would like to explain the examples in the book and analyze more practical application scenarios.

Only by carefully reading, understanding, and practicing can we truly understand the ideas in Java programming.

This commentary is written by Liu zhongbing, Chen jingchun, Zhou Tong, Liu Zhongmin, Chen wanzhen, Liu Jian, Li ruixia, Li Jianhai, Li Jingang, and Liu Zhongli. If there is anything wrong with the document, please give your comments and suggestions.

 

Liu zhongbing

April 20, 2011 in Beijing

This article is excerpted from the book Java programming ideology (4th edition) (Commentary edition.

The book Java programming ideology (4th edition) (Commentary edition) has been officially published by the Electronics Industry Press, and this book is commented by Liu zhongbing

 

 

Purchase address:

Dangdang:

Http://product.dangdang.com/product.aspx? Product_id = 21106091 & ref = search-1-Pub

Excellence:

Http://www.amazon.cn/Java%E7%BC%96%E7%A8%8B%E6%80%9D%E6%83%B3-%E5%88%98%E4%B8%AD%E5%85%B5/dp/B0055T5XVW/ref=sr_1_1? Ie = utf8 & qid = 1308711461 & sr = 8-1

China Interactive publishing network:

Http://product.china-pub.com/194002

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.