Online Java Compiler By
JavaTpoint.com
import java.math.BigDecimal; public class BigDecimalHashCodeExample4 { public static void main(String[] args) { // Create BigDecimal object BigDecimal bdValue; // create int type variable int hashCodeValue ; //Assign value into BigDecimal Object bdValue = new BigDecimal("1650.00"); //It will return hash code value of BigDecimal hashCodeValue=bdValue.hashCode(); // Display hash code value System.out.println("Returned hash code value is = " +hashCodeValue ); } }
Output