previous | start | next

## Static Fields

- Shared among all instances of a class
- Example: shared random number generator

      public class Greeter

      {

         . . .

         private static Random generator;

      }

- Example: shared constants

      public class Math

      {

         . . .

         public static final double PI = 3.14159265358979323846;

      }

previous | start | next