MCQs > IT & Programming > Core Java > Which code fragments correctly create and initialize a static array of int elements?

Core Java MCQs

Which code fragments correctly create and initialize a static array of int elements?

Answer

Correct Answer: static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Core Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Core Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it