Is array a primitive data type in Java?

Java 8Object Oriented ProgrammingProgramming

No, arrays are not primitive datatypes in Java. They are container objects which are created dynamically. All methods of class Object may be invoked on an array. They were considered as reference data types.

raja
Published on 08-Jan-2018 12:08:56
Advertisements