Question: urgent please.java a Fill in the blanks in the code below so that, when the code runs, its output is: 1) got null pointer 2)

 urgent please.java a Fill in the blanks in the code belowso that, when the code runs, its output is: 1) got null

urgent please.java

a Fill in the blanks in the code below so that, when the code runs, its output is: 1) got null pointer 2) got illegal array store 3) got illegal class cast public class TestExceptions { public static void main(String[] args) { try } catch (NullPointerException e) { System.out.println("got null pointer"); } try { } catch (ArrayStoreException e) { System.out.println("got illegal array store"); } b. What will be the output of the program? class si extends Thread { public void run() { for(int i = 0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!