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) {
        short shortNum1 = 150;
        Short ShortObj1 = new Short(shortNum1);

        int hcode = ShortObj1.hashCode();
        System.out.println("Hashcode for this Short ShortObj1 = " + hcode);
    }
}