Hello Rajshree,
It will not give you any error or exception. But logically there is no benifit to declare a final or static as transient.
Transient is used to protect the persistence(storing the state) of a variable.(Means the variable whose value we don't want to store is declared as transient).When we persist the state of an object, only the value of instance variables are stored.
As static is not come under the category of instance variables,so it will not store its state even if you don't put transient before it.
And if you think logically you do not need to store the value of a final variable as it will never change.So, why to waste memory resources for storing state of those variables which are final.
I hope this will help.
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit:
http://www.go4java.20m.com
Regards<BR>Gurpreet Sachdeva<P>For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: <A HREF="http://www.go4java.lookscool.com" TARGET=_blank rel="nofollow">http://www.go4java.lookscool.com</A>