my program is showing warning

hi

i am developing a application using swings(JFrames)

i had written the code it worked fine and no warnings or exceptions while tried to execute in JDK1.4 but when i tried to execute in JDK1.5 or more it is showing following warning messages as follows:

C:\Program Files\Java\jdk1.6.0\bin>javac fn1fast.java

Note: fn1fast.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:uncheckedfor details.

C:\Program Files\Java\jdk1.6.0\bin>javac -Xlint fn1fast.java

fn1fast.java:12: warning: [serial] serializableclass sample has no definition o

f serialVersionUID

class sampleextends JFrame

^

fn1fast.java:128: warning: [unchecked] unchecked call to add(E) as a member of t

he raw type java.util.ArrayList

al.add(new Character((char)i));

^

fn1fast.java:26: warning: [serial] serializableclass DNA has no definition of s

erialVersionUID

class DNAextends Panelimplements ActionListener

^

fn1fast.java:242: warning: [serial] serializableclass home has no definition of

serialVersionUID

class homeextends Panel

^

fn1fast.java:277: warning: [serial] serializableclass image has no definition o

f serialVersionUID

class imageextends Panelimplements ActionListener

^

5 warnings

but my program is executing well when i tried to execute inspite of above warnings

[2021 byte] By [santosh@mvgra] at [2007-11-14]
# 1
You must add Version Id private final static long serialVersionUID = 1L;Add this line after class sample extends JFrame,class DNA extends Panel implements ActionListener......
kynamara at 2007-7-11 > top of java,Desktop,Core GUI APIs...
# 2
pressing Ctrl-1 will give you the option to automatically do it for youedit: nevermind that unless you're using Eclipse, heh
torfua at 2007-7-11 > top of java,Desktop,Core GUI APIs...
# 3
>fn1fast.java:128: warning: [unchecked] unchecked call to add(E) as a member >of the raw type java.util.ArrayList>al.add(new Character((char)i));Try doing this ArrayList<Character> al = new ArrayList<Character>();
biojaea at 2007-7-11 > top of java,Desktop,Core GUI APIs...
# 4
thanks for ur suggestions...--santosh
santosh@mvgra at 2007-7-11 > top of java,Desktop,Core GUI APIs...