At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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