Java MCQ: Arrays in Java are?
a) Objects
b) Primitive data types
c) Methods
d) None of the above
Answer:
a) Objects
Explanation:
In Java, arrays are considered objects. This means they are instances of a class, and they have a built-in field length
that stores their size.
Reference links:
https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html