To make class serializable we do the following:
class A implements Serializable {
transient Object a;
}
And why not:
serializable class A {
transient Object a;
}
Why if we want to make class serializable we implement special interface. And if we want to exclude some fields we use keyword "transient"? Why special keywords aren't used in both cases? I mean were there any reasons to make the same thing in different ways? I know, there is no such keyword as "serializabe" but why it wasn't introduced instead of special interface Serializable?