The Wayback Machine - https://web.archive.org/web/20240204104939/https://www.geeksforgeeks.org/java-arrays-question-1/
Open In App
Related Articles

Java | Arrays | Question 1

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Which of the following is FALSE about arrays in Java?

(A)

A java array is always an object

(B)

Length of array can be changed after creation of array

(C)

Arrays in Java are always allocated on heap


Answer: (B)

Explanation:

In Java, arrays are objects, they have members like length. The length member is final and cannot be changed. All objects are allocated on heap in Java, so arrays are also allocated on heap.


Quiz of this Question
Please comment below if you find anything wrong in the above post

Feeling lost in the vast world of Backend Development? It's time for a change! Join our Java Backend Development - Live Course and embark on an exciting journey to master backend development efficiently and on schedule.
What We Offer:

  • Comprehensive Course
  • Expert Guidance for Efficient Learning
  • Hands-on Experience with Real-world Projects
  • Proven Track Record with 100,000+ Successful Geeks

Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads