At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Declare an int constant, MONTHS_IN_YEAR, whose value is 12. Ant MONTHS_IN_YEAR Final = 12; Worth 3 points Declare an int constant MONTHS IN DECADE, whose value is the value of the constant MONTHS_IN_YEAR (already declared) multiplied by 10.

Sagot :

The declared an int constant can be written with static final in Java.

What is static and final in Java?

Static in declared variable mean the variable will have same value in all class in Java.

Final in declared variable mean the variable will have a value that can't be changed in Java.

Since the both case want to create constant integer data it mean the data will have same value in all class and can't be changed.

So the code for the first question is,

static final int MONTHS_IN_YEAR = 12;

The code for the second question is,

static final int MONTHS_IN_DECADE = MONTHS_IN_YEAR*10;

Learn more about Java here:

brainly.com/question/14789626

#SPJ4