Skip to content
Related Articles
Open in App
Not now

Related Articles

Java | Arrays | Question 1

Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article

Which of the following is FALSE about arrays in Java?


A java array is always an object


Length of array can be changed after creation of array


Arrays in Java are always allocated on heap

Answer: (B)


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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!