Home>Article>Java> How to learn java based on c language

How to learn java based on c language

silencement
silencement Original
2019-05-30 16:12:46 3592browse

How to learn java based on c language

The content of Java is much simpler than that of C. It removes many error-prone areas in C/C, such as pointers, etc., which reduces the learning burden. Therefore, if you have a foundation of C, you can learn it quickly. You can learn it (but there is no concept of class in C, there is in C, and it is easier to get started with the foundation of C).

The core of Java lies in classes. Everything is encapsulated in classes, including the main function, so it is recommended to learn classes well.

Introducing several java books:

Java language programming (basic and advanced). There are no classic Java books. If you want basic books, I think these two books are more appropriate and sufficient.

Java programming ideas. This book is relatively classic, but it is best to have the most basic foundation before reading this book. The focus of Java is on classes. Learn classes well, overloading, inheritance, etc. Only when you learn them solidly can you improve later. This book basically explains the principles of Java thoroughly.

java official API documentation. There is no better information than this. The official documentation introduces in detail all classes, interfaces, and methods officially provided by Java. No matter what language you learn, if you want to learn more deeply and improve, you must read the official documentation. However, the official documents are more about application and have no principle. What is recommended to use and what to check.

Java is simpler than other languages, so it is easier to create many efficient software engineering tools, such as unit testing, refactoring, etc. With a solid foundation, learning these things can improve the level and efficiency of programming. and quality.

Design pattern, very classic, but very abstract. However, this is necessary if you want to improve programming in object-oriented languages. And after learning this, you will find that it is obviously different from a process-oriented language like C.

"Design Pattern" (known as GOF), "head first design pattern"

Refactoring, some people say that refactoring is the bread and water of modern software, it is used almost every day, it seems like Less important, but very important. Refactoring mainly adjusts the structure of the program to make it easier for the software to face changes. "Refactoring: Improving the Design of Existing Code"

It is necessary to learn unit testing tools Junit, UML tools, etc.

Programming is actually not difficult, especially a simple language like java, which is very easy to get started. I think it is more useful to learn design patterns and other things. Of course, the premise is to have a solid foundation.

The above is the detailed content of How to learn java based on c language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn