Which Java type does wca4z typically use when generating code for COBOL numeric fields defined with PIC 9(11)V9(2) COMP-3?
Select an answer to reveal the explanation.
Short Explanation
When you're generating Java code for COBOL COMP-3 numeric fields, you want BigDecimal because it preserves exact decimal arithmetic and precision matching packed decimal behavior. Don't let float, int, or long slip in; they lose the decimal semantics you need.
Full Explanation
BigDecimal matches COBOL COMP-3 by preserving exact decimal precision and rounding. Float is wrong because IEEE 754 approximates packed decimals. Int is wrong because COMP-3 can include implied decimals. Long is wrong because packed decimal is not just a 64-bit binary integer.