| Java Arrays, Objects, Methods | CS 161 - Java |
int intArray[]; intArray = new int[4]; float[] fnumbers = new float[8]; CSStudent studentArray[] = new CSStudent[10];
Question: How many CSStudent objects are created by the declaration?
Notice it is a field named length, unlike the instance method named length() associated with String objects.
|
jwd |