What are Vectors and Serialization & what are they used for ??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: What are Vectors and Serialization & what are they used for ??

  1. #1
    Tricia Guest

    What are Vectors and Serialization & what are they used for ??



    Hello there,

    I am a student studying Java and I'm in my 3rd year of college, but the lecturer
    what I have for teaching our class in college is TOTALLT USELESS and Couldn't
    even explain what a piece of paper is and what it might be used for, so I
    seriously need someones help !
    At the moment this is what we are studying, and even though I've searched
    the Sun website, I still don't understand what Vectors are or what serialization
    is and what they are both used for or in ?? So I really need someone's help
    in explaining both of these and maybe some good examples of programs in using
    both vectors and Serialization !! I have gotten a program from a friend in
    serialization, but if I don't unsersatnd what it is about or what serialization
    is about and used for or in then there's no point in me copying it off my
    friend !!
    If anyone can help me on this one I would be sooooooooooooooooo greatful
    or even to point me in the right direction then I would be forever greatful
    and really appreciate the helping hand !! Thanks !!

    Regards,

    Tricia !!

  2. #2
    Mark Guest

    Re: What are Vectors and Serialization & what are they used for ??


    Vectors are fancy arrays. A collection of (hopefully like) things.

    Serialization is taking Java objects and making them into a stream so they
    can be passed somewhere else (ie. another machine) or written to disk.

    "Tricia " <syntia5@hotmail.com> wrote:
    >
    >
    >Hello there,
    >
    >I am a student studying Java and I'm in my 3rd year of college, but the

    lecturer
    >what I have for teaching our class in college is TOTALLT USELESS and Couldn't
    >even explain what a piece of paper is and what it might be used for, so

    I
    >seriously need someones help !
    >At the moment this is what we are studying, and even though I've searched
    >the Sun website, I still don't understand what Vectors are or what serialization
    >is and what they are both used for or in ?? So I really need someone's help
    >in explaining both of these and maybe some good examples of programs in

    using
    >both vectors and Serialization !! I have gotten a program from a friend

    in
    >serialization, but if I don't unsersatnd what it is about or what serialization
    >is about and used for or in then there's no point in me copying it off my
    >friend !!
    >If anyone can help me on this one I would be sooooooooooooooooo greatful
    >or even to point me in the right direction then I would be forever greatful
    >and really appreciate the helping hand !! Thanks !!
    >
    >Regards,
    >
    >Tricia !!



  3. #3
    Terry Bone Guest

    Re: What are Vectors and Serialization & what are they used for ??


    Vectors are like arrays but they can grow and shrink to accommodate different
    sizes after they have been created. So if you don't know how many items you
    are going to be dealing with - use a vector rather than a very large array
    (over capacity).


    You would use serialized objects to save off session information to disk
    or if you need to pass a java object to another machine.


    "Mark" <java.@127.0.0.1> wrote:
    >
    >Vectors are fancy arrays. A collection of (hopefully like) things.
    >
    >Serialization is taking Java objects and making them into a stream so they
    >can be passed somewhere else (ie. another machine) or written to disk.
    >
    >"Tricia " <syntia5@hotmail.com> wrote:
    >>
    >>
    >>Hello there,
    >>
    >>I am a student studying Java and I'm in my 3rd year of college, but the

    >lecturer
    >>what I have for teaching our class in college is TOTALLT USELESS and Couldn't
    >>even explain what a piece of paper is and what it might be used for, so

    >I
    >>seriously need someones help !
    >>At the moment this is what we are studying, and even though I've searched
    >>the Sun website, I still don't understand what Vectors are or what serialization
    >>is and what they are both used for or in ?? So I really need someone's

    help
    >>in explaining both of these and maybe some good examples of programs in

    >using
    >>both vectors and Serialization !! I have gotten a program from a friend

    >in
    >>serialization, but if I don't unsersatnd what it is about or what serialization
    >>is about and used for or in then there's no point in me copying it off

    my
    >>friend !!
    >>If anyone can help me on this one I would be sooooooooooooooooo greatful
    >>or even to point me in the right direction then I would be forever greatful
    >>and really appreciate the helping hand !! Thanks !!
    >>
    >>Regards,
    >>
    >>Tricia !!

    >



  4. #4
    Sandy Guest

    Re: What are Vectors and Serialization & what are they used for ??


    "Mark" <java.@127.0.0.1> wrote:
    >
    >Vectors are fancy arrays. A collection of (hopefully like) things.
    >
    >Serialization is taking Java objects and making them into a stream so they
    >can be passed somewhere else (ie. another machine) or written to disk.
    >
    >"Tricia " <syntia5@hotmail.com> wrote:
    >>
    >>
    >>Hello there,
    >>
    >>I am a student studying Java and I'm in my 3rd year of college, but the

    >lecturer
    >>what I have for teaching our class in college is TOTALLT USELESS and Couldn't
    >>even explain what a piece of paper is and what it might be used for, so

    >I
    >>seriously need someones help !
    >>At the moment this is what we are studying, and even though I've searched
    >>the Sun website, I still don't understand what Vectors are or what serialization
    >>is and what they are both used for or in ?? So I really need someone's

    help
    >>in explaining both of these and maybe some good examples of programs in

    >using
    >>both vectors and Serialization !! I have gotten a program from a friend

    >in
    >>serialization, but if I don't unsersatnd what it is about or what serialization
    >>is about and used for or in then there's no point in me copying it off

    my
    >>friend !!
    >>If anyone can help me on this one I would be sooooooooooooooooo greatful
    >>or even to point me in the right direction then I would be forever greatful
    >>and really appreciate the helping hand !! Thanks !!
    >>
    >>Regards,
    >>
    >>Tricia !!

    >



  5. #5
    Sandy Guest

    Re: What are Vectors and Serialization & what are they used for ??


    I wanted to say you might want to make sure you want to post something insulting.
    I am a teacher of Java and I watch this site for postings I think my students
    would be interested in. You may not care if your instructor sees what you
    think?


  6. #6
    Clarke Isackson Guest

    Re: What are Vectors and Serialization & what are they used for ??


    The simplest concept of a Vector is an array. More useful, though, a Vector
    is a class that is used to store any class. The Vector class is being replaced
    with other List objects and Maps. These things store objects along with
    a key element for retrieval. Vectors allow you to retrieve their contents
    based upon interfaces, position within the collection within the Vector,
    or by testing each element for some specific attribute.

    Serialization is a completely different subject. That makes use of Reflection
    to allow an object to be saved to disk (dehydrated), and then reused (rehydrated).

    These topics are very specific and are usually covered in decent books on
    Java.
    "Tricia " <syntia5@hotmail.com> wrote:
    >
    >
    >Hello there,
    >
    >I am a student studying Java and I'm in my 3rd year of college, but the

    lecturer
    >what I have for teaching our class in college is TOTALLT USELESS and Couldn't
    >even explain what a piece of paper is and what it might be used for, so

    I
    >seriously need someones help !
    >At the moment this is what we are studying, and even though I've searched
    >the Sun website, I still don't understand what Vectors are or what serialization
    >is and what they are both used for or in ?? So I really need someone's help
    >in explaining both of these and maybe some good examples of programs in

    using
    >both vectors and Serialization !! I have gotten a program from a friend

    in
    >serialization, but if I don't unsersatnd what it is about or what serialization
    >is about and used for or in then there's no point in me copying it off my
    >friend !!
    >If anyone can help me on this one I would be sooooooooooooooooo greatful
    >or even to point me in the right direction then I would be forever greatful
    >and really appreciate the helping hand !! Thanks !!
    >
    >Regards,
    >
    >Tricia !!



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center