What is the result?

Given the code fragment:
int [] [] array2D = {{0, 1, 2}, {3, 4, 5, 6}};
system.out.print (array2D[0].length+ “” );
system.out.print(array2D[1].getClass(). isArray() + “”);
system.out.println (array2D[0][1]);
What is the result?

Given the code fragment:
int [] [] array2D = {{0, 1, 2}, {3, 4, 5, 6}};
system.out.print (array2D[0].length+ “” );
system.out.print(array2D[1].getClass(). isArray() + “”);
system.out.println (array2D[0][1]);
What is the result?

A.
3false1

B.
2true3

C.
2false3

D.
3true1

E.
3false3

F.
2true1

G.
2false1

Explanation:
The length of the element with index 0, {0, 1, 2}, is 3. Output: 3
The element with index 1, {3, 4, 5, 6}, is of type array. Output: true
The element with index 0, {0, 1, 2} has the element with index 1: 1. Output: 1



Leave a Reply 12

Your email address will not be published. Required fields are marked *


Tim

Tim

Hi, I just finished the exam and failed, this sample exam does not help a lot, the real exam question has been udpated, please update this exam with the new version, thanks

Sudhakar

Sudhakar

Tim,
All of the questions are different? Please let me know.

Sudhakar

Sudhakar

Which exam you are taking about.

Tim

Tim

I am talking about 1Z0-803 exam, the real exam has been changed to 70 questions with 2hrs, not 90 questions with 2.5 hrs anymore. If this sample exam is not updated, we can not use it any more. please update this exam.

L

L

Are the real exam question similar to the question here or they have nothing in common? Are these question helpful at all?

got_nothing

got_nothing

Answer is D

Carlos

Carlos

I fail the exam with this test.

noname

noname

It indeed change the number of questions.
70 /120 min

Don’t worry, just try and try.
A rolling stone gathers no moss.

Martin Lee

Martin Lee

Hi, I just passed OCAJP 7 (1Z0-803) EXAM with 98%. I would like to share my exam experience with those who are going to take this exam. I learned the Mala Gupta’s book and PassLeader 1Z0-803 dumps. They were describing and explaning the key points of the exam very clearly. To be honest, I read Mala Gupta’s book mainly because of the interest how the basic things in Java are handled internally and I started to take the PassLeader 1Z0-803 dumps (http://www.passleader.com/1z0-803.html), around one week before the exam. Good luck to future Oracle exam takers!

L

L

Martin,
Can you tell me if the question from the real exam have something in common with these here?
Thank yo