Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (10.2k points)

What data type should you use for money in Java?

1 Answer

0 votes
by (46k points)

Java has Currency class that represents the ISO 4217 currency codes. BigDecimal is the best type for representing currency decimal values.

Joda Money has provided a library to represent money.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 19, 2019 in Java by Anvi (10.2k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...