If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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 !!

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

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 !!

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 !!
>

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 !!
>

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?

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 !!