static: you can have static variables as well as methods. both static variables and methods belong to the class and not to any particular instance of that class.(i am actually retyping this, sheriff, please look into this. this portion was lost during my first edit.) eg:-
you access them like,
transient: this keyword prevents Serialization when used with a variable. that is it prevents that particular field which has been declared as transient not to be saved to the disk.
------------------ Raghav. [This message has been edited by Raghav Sam (edited June 20, 2001).] [This message has been edited by Raghav Sam (edited June 20, 2001).]
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.<br />- Dr. Seuss
Maghvendra, volatile is a keyword used in threads. Basically java lets individual threads hold their own copy of varaibles while they are executing. For narmal variables used in threads the threads copy is checked against a master copy only when objects that have that variable are locked or unlocked and other key times. Using volatile tells the compiler to check the threads copy against the master copy everytime the thread accesses the variable. That was a quick explaination, for more details go here: http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#36930 hope that helps
Wink, wink, nudge, nudge, say no more, it's a tiny ad: