> Are arrays of primitives, such as byte[] full-fledged Objects?
Why, yes. Yes they are.

Signature
Bob
>Are arrays of primitives, such as byte[] full-fledged Objects?
As opposed to half-assed objects? It's an object.
Lee Weiner
lee AT leeweiner DOT org
Wibble - 27 May 2005 02:16 GMT
I think that would be half-fledged, as opposed to full-assed.
>>Are arrays of primitives, such as byte[] full-fledged Objects?
>
> As opposed to half-assed objects? It's an object.
>
> Lee Weiner
> lee AT leeweiner DOT org
> Are arrays of primitives, such as byte[] full-fledged Objects?
Yes, it would appear as if the array object were an instance of
class A implements Cloneable, java.io.Serializable {
public final int length = X;
public Object clone() {
try {
return super.clone();
} catch (CloneNotSupportedException e) {
throw new InternalError(e.getMessage());
}
}
}
<http://java.sun.com/docs/books/jls/second_edition/html/arrays.doc.html#64347>

Signature
Regards,
Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \