Sim-Ex™ Practice Exams for Java SE 8 Programmer II: Sample Questions

Declaration and Access Control

Home     Up     Next

Q1. Which of these statements are legal. Select the three correct answers.

A. int arr[][] = new int[5][5];

B. int[]arr[] = new int[5][5];

C. int[] arr = new int[5][];

D. int[] arr = new int[][5];

Correct Answer: A,B,C



Home     Up     Next

Disclaimer: is not affiliated with any certification vendor, and Sim-Ex™ Practice Exams are written independently by and not affiliated or authorized by respective certification providers. Sim-Ex™ is a trade mark of or entity representing® is a trademark of Oracle™.