Answer:
The answer is "Option A"
Explanation:
In the given java code, a class "Test" is defined, inside the main method try and catch block is used, inside the try block method "p()" is called, that print a message. in this block two catch block is used, that works on "NumberFormatException" and "RuntimeException". In the method "p" declaration, a string variable "s" is defined, that holds double value, that is "5.6", and converts its value into the wrong integer, and other wrong option can be described as follows:
- In option B, it is wrong, it is not followed by after call method.
- In option C, It is not followed by runtime exception, that's why it is incorrect.
- Option D and Option E both were wrong because they can't give run time and compile-time error.
Answer:
public static boolean isReverse(int [ ]a, int [ ]b ){
for (int i=0;i<a.length;i++)
{
if(!(a[i] == b[a.length-i-1]))
return false;
}
return true;
}
Explanation:
Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else we return true.
Answer:
The formula to enter in E14 is as follows:
=DAYS(D14,$E$10)
Explanation:
Required
Formula to calculate the number of days between E10 and D14
The syntax to do this is:
=DAYS(end_date,start_date)
So, we have:
=DAYS(D14,E10)
The question requires a mix of relative and mixed references because cell E10 will be constant in calculating the difference for dates in other cells.
In other words, the initial date is constant for all
So, the update formula is:
=DAYS(D14,$E$10)
Notice the $ between in E10; this represents mixed referencing
When dragged to E15 till E68, the formulas in the respective cells will be:
=DAYS(D15,$E$10) .............................. =DAYS(D68,$E$10)
The writing system the the Egyptians used to develop a system of writing was hieroglyphics.