Java: static and transient keywords
I came across transient keyword and wanted to get few more details about it. This is one of the most ignored or rarely used keyword by me. It is really funny but, I never really used this keyword extensively. The main reason is, this keyword has a very specific use and most of the applications don't need that for building the business applications. As per info here, when any object state is getting serialized, static and transient variables will be ignored for serialization. Still, Java compiler doesn't give any warning or prohibit from making a variable static and transient at the same time. I don't think this as error but a warning should make more sense in this case.


hi sir
i want to know the static in deep.static alocat space in the memory for variables,objects,methods etc declared in the class
but at run time how overriden done
aarif
26 Jul 08 at 10:03 am