Constants are fields that hold values that do not change. It’s a custom to format constants in full caps. When you have a modifier of “final”, it’s a constant.

Here’s a sample constant:

private static final String EXCEPTION_MESSAGE = “ints must contain at least one int”;

– Java 7 for Absolute Beginners

Stay current with the latest in tech comm
Keep current with the latest trends in technical communication by subscribing to the I'd Rather Be Writing newsletter. 4,500+ subscribers

follow us in feedly