Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 6: Array
Start Practice TestPractice Test
About Exam
easy Solved by 2 students

Java Array Length Field

Mark
< Prev
Next >

What is printed when the following code is executed?

public class ArrayLength {
    public static void main(String[] args) {
        int[] data = new int[7];
        System.out.println(data.length);
    }
}
A

6

B

8

C

0

D

7

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1deltasmpserver22 0m 00s 200
#2bommasam00022 1m 31s 109
#3gorkemakyuz20107501 0m 20s -30
Items per page:
10
1 – 3 of 3

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|