Examlex

Solved

Given the Following Code, Which Method Call(s) Will Cause the Method

question 49

Multiple Choice

Given the following code, which method call(s) will cause the method to return true?
Public static boolean isIdeal(int year)
{
Return ((year % 4 == 0) && (year % 100 != 0) ) || (year % 400 == 0) ;
}
I. isIdeal(1600)
II. isIdeal(1700)
III. isIdeal(2000)
IV. isIdeal(2008)


Definitions:

Related Questions