What is the correct posture for learning Java in 2023? I will tell you

thumbnail

First, understand the basics of Java.

Java basic grammar, Java platform application, core concepts of Java: JVM, JDK, JRE and Java object-oriented thinking. At the same time, learn how to build a Java development environment in the system and how to use third-party tools to develop Java programs.

learning method

For Java beginners, watching videos is the most common way to learn, but it is also the most efficient way of learning in this era. The current video tutorials will explain some common knowledge in work, and generally divide the videos into chapters. Sections are convenient for viewers to learn, and each section only talks about one knowledge point, which is relatively clear to learn. But the video tutorial should be as complete as possible, preferably a complete set of video learning.

2. Learn the most basic knowledge of the Java language to the advanced design stage

To understand the commonly used design patterns and the implementation examples of the Java language to learn Java design patterns.

We can learn many types of design patterns from it, including factory patterns, singleton patterns, adapter patterns, observer patterns, decorator patterns, and more.

Third, establish a good development environment.

The environment is established, the most important thing is to practice, practice makes perfect, and to deepen your understanding of the programming language through continuous practice. As a novice, you can find a good classic introductory book. There are also a lot of information on the Internet. You can choose pictures, texts or videos to practice according to your personal preferences. If you are doing Java development, you need to understand these three terms, called SDK, API and Lib, which represent software development kit, application programming window and library respectively. In fact, there is a certain connection between these three, or cross. Generally speaking, they are some infrastructures that encapsulate the underlying functions provided to us. These things are usually embodied in what we often call "framework". In fact, to become a senior Java developer, learning various APIs and frameworks may be the place where you spend the most time.

4. To learn Java, first complete basic experiments such as Java foundation, JDK, JDBC, etc., and learn J2SE and SSM frameworks.

  1. Development environment establishment and project management:

Eclipse, IDEA, Maven, and Git

  1. Java programming basics:

The Java foundation is nothing more than the need to know the Java overview, Java language foundation, object-oriented, exception handling, common classes, IO streams, threads, reflection, etc.

Java overview: You need to know some basic knowledge of Java, such as advantages, when it was born, and how it is currently developing.

Java language foundation: learn some identifiers, variables, data types, operators, control statements, methods and other knowledge.

Object-oriented: Java is a programming language for object-oriented development.

Exception handling: Although computers do not make mistakes, they are made by humans after all, so some abnormal errors may occur when writing code. After an exception occurs, the programmer needs to deal with it.

Commonly used classes: Java provides programmers with a powerful API, which makes our development much easier. You must master the classes that Java provides us, the commonly used ones.

Arrays and collections: This content will be used 100% in future work, so it must be studied as a key point.

IO stream: IO stream is used when reading or transferring files using Java. For example, if you bought a bicycle from the Internet, the merchant should mail you some parts (an assembled bicycle is not conducive to mailing) , you need to assemble it yourself. Similarly, if you want to read a file from one place to another, using IO streams will greatly facilitate your operation.

Thread: Through thread, the program can work more efficiently. Of course, if it is not used properly, it will also cause a lot of problems.

Reflection: If you want to write some frameworks by yourself in the future, reflection knowledge is essential.

Generally, after learning the above content, the basic knowledge of Java will be mastered.

  1. Front-end development:

HTML, CSS, JavaScript basics

  1. Database:

Database knowledge is a must for programmers, including building databases, building tables, adding, deleting, modifying, and writing stored procedures, etc. It is very important for programmers to be familiar with and master the use of SQL language.

  1. JDBC

JDBC is the API for Java to operate the database. Through JDBC, Java can establish communication with the database. Mastering JDBC is a compulsory content for Java programmers. This part includes the use of classes and interfaces such as DriverManager, Connection, Container (Statement, PreparedStatement, CallableStatement), and ResultSet. In addition, it is necessary to master the structural division of the Java operation database and the use of the DAO framework.

  1. Spring foundation:

Dependency injection IoC, aspect-oriented programming AOP, SpringBoot

  1. Framework:

Spring MVC, mybatis, Struts, etc., including URL routing, templates, forms, Session, interceptors and other knowledge, and specifically mention JSP and Servlet, although various mature MVC frameworks have made Java Web development rarely use JSP and Servlet. The native functions of Servlet are basically encapsulated. But this part of the basic knowledge suggests that beginners should study carefully. Some of Java's own core packages and technologies are nothing more than: collections, generics, IO, multithreading, reflection, and proxies.

end

Learning programming is mainly to practice more and knock more to consolidate the knowledge you have learned. If you simply watch the video and learn it, then you will not be able to learn Java no matter how many times you watch it. You learn a little and forget a little because you don’t understand enough in the learning process, you type too little code in the learning process, and the daily learning time is not long, so the learning cycle is too long. According to this situation, you can’t learn . So it doesn’t make any sense to just watch the video every day. You need to follow along more, practice more, and then find relevant knowledge points to practice to consolidate the knowledge you have learned.

Related Posts