Correct Answer : Get Lastest Questions and Answer : Explanation: In given statement we can see that, we have passed negative value for creating int array, which results a NegativeArraySize Except ion. Hence option B is correct. Option A is incorrect as it is thrown when an application attempts to use null in a case where an object is required. Option D is incorrect as IndexOutOfBoundsException thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.
Question : You have been given following code snippet
float x = 22.00f % 3.00f; int y = 22 % 3; System.out.print(x + ", " + y);
1. Compilation fails. 2. The third argument is given the value null. 3. Access Mostly Uused Products by 50000+ Subscribers 4. The third argument is given the value zero. 5. The third argument is given the appropriate false value for its declared type.