Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] args) {
        Boolean b1 = new Boolean(true);
        Boolean b2 = new Boolean(false);

        int i1 = b1.hashCode();
        int i2 = b2.hashCode();

        System.out.println("Hash code of " + b1 + " is " + i1);
        System.out.println("Hash code of " + b2 + " is " + i2);
    }
}