Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2005

Tip: Looking for answers? Try searching our database.

Array

Thread view: 
Jerry - 27 May 2005 01:20 GMT
Are arrays of primitives, such as byte[] full-fledged Objects?
Bob - 27 May 2005 01:44 GMT
> Are arrays of primitives, such as byte[] full-fledged Objects?

Why, yes. Yes they are.
Signature

Bob

Lee Weiner - 27 May 2005 02:12 GMT
>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
Roland - 27 May 2005 12:25 GMT
> 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_/ /__/
/  \ /_/ /  \



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.