Chapter 9. Java Methods

As we are starting to get comfortable with Java programming, in this chapter, we will take a closer look at methods. Although we know that you can call them to make them execute their code, there is more to them than we have discussed so far.

In this chapter, we will look at the following topics:

  • Method structure
  • Method overloading versus overriding
  • A method demo mini app
  • How methods affect our variables

First, let's go through a quick method recap.

Methods revisited

The following diagram sums up where our understanding of methods is at the moment:

Methods revisited

As we can see in the preceding diagram, there are still a couple of question marks ...

Get Android Programming for Beginners - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.