What if i will not serialized my classes...
eg. not setting the serialVersionUI D....
What will happen to my program?
What will be the disadvantage of doing like this?
waiting for your replies,
sukatoa
Nothing much will happen, you just can't serialize instances of your classes then.
It depends on what you want to do with those instances.
Nothing much will happen, you just can't serialize instances of your classes then.
It depends on what you want to do with those instances.
kind regards,
Jos
Thanks for the reply Jos.
I don't no what should be the most important about it. Other says, they will be useful if i will implement it through a module type updating of a software.
As an exception occurs when the serialVersionUI D of the software is not exactly/logically equal to the module to be used for updating the said software..
It is true?
By the way, i will not delete those settings, maybe this might be useful soon...
(Obviously im not aware of it)....
I doubt about the REAL algorithm of for:each statement....
Can you discuss me here Jos? and somebody here in java forum who knows the real algo of for:each statement(they way it performs).....
Or the best URL you know that explains it well?
An ArrayList that contains all the keys to be shown on the JList....
Im sorry, i forgot to say Jos.....
ROOM is an object created from my DataSetHandler class...
( a public class that implements Serializable and takes care of data sets ).
It still doesn't matter: if that method returns a List of some sort you can still use
that for-each loop on it; no need to build an array out of it first and use that loop
on the array.
It still doesn't matter: if that method returns a List of some sort you can still use
that for-each loop on it; no need to build an array out of it first and use that loop
on the array.
kind regards,
Jos
That example you've posted is really new to me...
I'll try and update the results...
Wow, i thought that was not possible to implement....
Thinking that all values of the list are Objects.... :) I amazed...
Thanks Jos,
When we compare the code
[CODE=JAVA]ArrayList al = ROOMS.getUnique Keys(true);
for(Object o: al)
dlm.addElement( o);[/CODE]
to your example,
Does it make any sense? Which should be the better/faster one?
That makes sense and it doesn't differ much from my example, you are just using
a needles local variable. Your previous versions however created an explicit array
and you looped over the array.
Your next step should be to use generics for type safety, i.e. that list of yours
doesn't contain just Objects, it contains something more specific.
That makes sense and it doesn't differ much from my example, you are just using
a needles local variable. Your previous versions however created an explicit array
and you looped over the array.
Your next step should be to use generics for type safety, i.e. that list of yours
doesn't contain just Objects, it contains something more specific.
Comment