Java development for beginners

Learning Java: How to work through the course properly and consolidate your knowledge

All videos of the tutorial Java development for beginners
Jan Brinkmann
By Jan Brinkmann Last updated on

Many learners watch a module, nod in agreement, and three days later still have no idea how a loop is structured. This is rarely due to a lack of intelligence, but usually to the way the material is worked through. This guide shows you how to work with the Java course so that what you learn goes into your head and your fingers. The tips come from many years of course experience and are structured so that you can apply them directly to your daily learning routine.

Java for beginners - 1.5 Working with the course

The video is only loaded from YouTube when you play it – data (including your IP address) is then transmitted to YouTube/Google. More in the privacy policy

Key Takeaways

  • First watch a video or an entire module in full before you get hands-on yourself.
  • Type out the examples yourself. Only this way do you develop a feel for the syntax.
  • Deliberately modify the code to see how the program behaves.
  • Develop your own program ideas and implement them in a blank document.
  • Treat errors as a learning opportunity and work through problems step by step.
  • Only look at sample solutions once you have solved the task yourself.
  • Keep your projects and optimize them later through refactoring.

Step-by-Step Guide

Step 1: Watch the Video in Full

Before you type anything, watch the current video in its entirety. You can also take on an entire module with all of its videos at once, or initially limit yourself to individual videos. What matters is that you keep the overview and know what the respective section is about.

Learning Java: Work through the course properly and consolidate your knowledge

Step 2: Follow Along Instead of Just Consuming

In the first pass, the goal is to understand the examples. Follow what happens in the code, and trust the explanations, even if individual details are still unclear to you. The logic often only becomes clear as the course progresses.

Learning Java: Work through the course properly and consolidate your knowledge

Step 3: The Instructor as a Role Model for Programming

Watch how the program is built line by line. Pay attention to the order in which decisions are made and why the code is structured the way it is. Watching in this way gives you a feel for how professional programmers think.

Learning Java: Work through the course properly and consolidate your knowledge

Step 4: Type Out the Examples

Now the actual learning process begins. Start the video again, pause repeatedly, and type out the code shown yourself. Typing it out may seem tedious, but this is exactly how you get to know the keywords, the placement of brackets, and the typical patterns of the language. Over time, the syntax becomes more familiar, and you no longer have to laboriously reconstruct every line from memory.

Learning Java: Work through the course properly and consolidate your knowledge

Step 5: Deliberately Modify the Code

Once the code runs, go one step further. Change conditions, extend a loop from ten to fifteen iterations, or reverse a condition, for example by checking whether a variable is less than rather than greater than one. Observe what happens, and try to predict how the program will behave. If your prediction is wrong, you have just learned something valuable.

Learning Java: How to work through the course properly and consolidate your knowledge

Step 6: Develop Your Own Ideas from the Course Program

Use the software from the course as a starting point for new projects. A currency converter from euros to US dollars can be transferred to other units using the same logic, such as from inches to centimeters or from PSI to bar for tire pressure. Many such conversions are based on simple formulas, and that is exactly what makes them ideal for experimenting. In doing so, you learn to transfer logic instead of just copying templates.

Learning Java: Working through the course properly and consolidating your knowledge

Step 7: Develop a Feel for the Language

With growing practice, keywords and frequently used constructs such as an if condition become so familiar that you no longer think about how they are written. This fluent writing comes from repetition. Occasionally looking things up remains normal nonetheless, especially for rarely used methods and functions. Don't be afraid to consult the official documentation.

Learning Java: Working through the course properly and consolidating your knowledge

Step 8: Start your own project at the end of the module

At the end of each module, pause briefly and ask yourself what knowledge you have already gained and what you can build with it. Then try to write your own program idea completely from scratch on a blank document. This is more demanding than recreating given examples, because no one gives you the structure. This very situation forces you to activate all of your knowledge.

Learning Java: Working through the course properly and consolidating your knowledge

Step 9: Track down and fix errors in a targeted way

Errors are part of the learning process. Syntax errors, which your development environment underlines in red, such as a forgotten semicolon, can usually be fixed quickly. Logical errors are more difficult: the program runs but delivers a wrong result, for example when numbers are not added correctly or when strange values appear with floating-point numbers like 1.5 + 1.5. Go through your code line by line and check what value the variables have at each point. This precise analysis gives you the deepest understanding of the programming language. The aha moments when an error is finally understood stay especially well in your memory.

Learning Java: Work through the course properly and consolidate your knowledge

Step 10: Look at sample solutions only after your own attempt

For every task there is a sample solution at the end of the module. Open it only after you have tried to solve the task yourself. If you can't get started right away, rather set the task aside for an hour and come back fresh later. If you then compare your solution with the sample solution, you will recognize other possible approaches. If, on the other hand, you look at someone else's solution first, you often unconsciously adopt their way of thinking and lose the chance of a creative approach of your own.

Learning Java: Work through the course properly and consolidate your knowledge

Step 11: Keep your projects and improve them through refactoring

Don't overwrite your files again and again. Keep each module and each project separately so that you can access them later. Once you are further along in some modules, you can look at old solutions with your new knowledge. Perhaps you will realize that a piece of logic can be written more efficiently, that a function belongs in its own method, or that classes can be sensibly structured with inheritance. This targeted improvement of existing code is called refactoring, and it is a constant part of later professional life. Even the next day, when you open your project again, you will often notice spots that can be simplified.

Learning Java: Work through the course properly and consolidate your knowledge

Summary – Learning Java: Working through the course properly and consolidating your knowledge

The Java course only unfolds its full value when you work with it actively. First watch, understand the connections, and type out the code yourself. Then modify the examples, develop your own ideas, and solve errors step by step. Sample solutions stay closed until you have made your own attempt, and you keep your projects to develop them further later through refactoring. In this way, what you have read becomes a skill that will carry you in the future as well.

FAQ

Do I really have to type out the examples instead of copying them?Yes, typing them out trains the syntax and the keywords. With mere copying, what you learn remains superficial.

How often should I pause a video?Pause as often as you need in order to take notes. You don't have to know every line by heart right away.

What do I do if I get stuck on a task?Set the task aside briefly and try again later. Only look at the sample solution afterwards.

Why should I keep my old projects?With new knowledge you can improve, simplify, and structure old solutions. This refactoring is also important in professional life.

How do I deal with logical errors?Go through your code line by line and check the values of the variables at each point. This way you find out where the deviation arises.

Jan Brinkmann
Trainer About Jan Brinkmann Web development with passion! Jan has been a developer for over 15 years. All courses by Jan Brinkmann