How do you declare an object array in Java? - Stack Overflow vehicle[N]= car=new vehicle ... It's the other way round: Vehicle[] car = new Vehicle[N];. This makes more sense, as the number of elements in the array isn't part of ...