In this free Java Foundations video, we will review another very important paradigm in the programming universe – Methods. We will find a few ways in which will make our code more organized and readable. Also, we are going to learn how to extend the functionality of our code.
Each of these topics is explained with many real-life examples and hands-on exercises. As always, we advise you to pause the video right before solving part of a problem and try to do the exercises on your own first. Then, if you have difficulties, just watch the provided solutions in the video. If you still have questions, we’re always here to help! Join our Facebook group and ask away!
*The exercise descriptions are to be found in the PDF document at the end of this post.
If you are new to programming, make sure to watch the Free Full Java Basics course first, as it is a necessary prerequisite to this one. It explains the topics in a lot more detail, as this video aims to revise them and get to more complex topics after that.
This course is also perfect for people who have some background in programming with a different language and would like to pick up on Java.
- What is a Method?
- Naming and Best Practices
Declaring and Invoking Methods
- Void and Return type Methods
Methods with Parameters
- Overview, Examples
Value vs Reference Types
- What is the difference?
- Example and Definition
Program Execution Flow
Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! Now it’s your turn. Do your exercises!