Question: Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a 3( 100,200 }; B.

 Which two code fragments correctly create and initialize a static array

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a 3( 100,200 }; B. static final intl a; static { a=new int[2]; ao1=100, a[1-200; } c. static final int[] a = new int[2]{ 100,200 }; D. static final intl a; static void init() { a = new int[3]. a[?=100; a[1]=200; }

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!