001package edu.pdx.cs410J.tips;
002
003/**
004 * This class demonstrates some interesting things about static
005 * initializers. 
006 */
007public class Truth {
008  public static void main(String args[]) {
009    new Foo();
010  }
011}
012
013class Foo {
014  static Bar b = new Bar();
015
016  static boolean truth() { return true; }
017  static final boolean TRUTH = truth();
018
019  Foo() {
020    System.out.println("The truth is: " + TRUTH);
021  }
022}
023
024class Bar extends Foo { }