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.Â
*The exercise descriptions are to be found in the PDF document at the end of this post.
Lesson Topics
Methods
- 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?
Overloading Methods
- Example and Definition
Program Execution Flow
Practical Exercises
Watch the video and solve the problems. To better understand the material, do the coding exercises and implement the knowledge you acquired. Writing code is the only way to master the skill of code.
Submit your code in the SoftUni Judge System: