created: 03/07/2018; small additions 08/01/2024

go to home page   go to next page highlighting

CHAPTER 54 — Static Methods

Chapter Topics:

Previous chapters have discussed instance variables and instance methods that make up an object. This chapter discusses static methods that the static main() method may call without creating an object.


QUESTION 1:

(Review: ) Is a static main() method part of an object? In other words, in the following, is there an object that holds the static main() method?

public class Hello
{
  public static void main ( String[] args )
  {
    System.out.println("Hello Amy");
  }
}

go to home page   go to next page