Online Java Compiler By
JavaTpoint.com
public class JavaByteHashCodeExample3 { public static void main(String[] args) { byte b1=34; //byte is a primitive data type its object can't be used to call Byte class objects. int b2=b1.hashCode(); System.out.println(b2); } }
Output