created: 03/07/2018

go to home page   go to next page

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.


QUESTION 1:

(Review: ) Is a static main() method part of an object? In other words, in the following, is there and 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