Declare an integer constant. months_in_year. whose value is 12.

Worth 3 points 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. Worth 3 points 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. Worth 3 points 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.

ans:
//declaring in constant,MONTH_IN_YEAR whose
value is 12
static final int MONTHS_IN_YEAR=12;
//declaring in constant,MONTH_IN_DECADE whose
value is the MONTH_IN_YEAR multiplied by 10
static final int
MONTH_IN_DECADE=MONTHS_IN_YEAR*10;

Leave a Comment