In Java we can declare an array using the following:
String[] array = new String[10];
int size = array.length;
Does this mean that the array itself is an object?
I ask, because in C++ an array is just a pointer and does not have any methods.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
The Java Language Specification section 4.3.1 starts off with: