Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how are marker interfaces working ?

807589Aug 4 2008 — edited Aug 4 2008
can we create user defined marker interface ?

Some thing like Serializable.

That is unless and untill a user implements Serializable interface he is not able to store the object to a persistance media.

The compiler shoud show errors if we are not implementing the ''user defined marker Interface'' which is used for some purpose

Something like we should be informing the compiler that if a user is not implementing a ''user defined marker interface'' he is not supposed to use a specific classes or methods in that class

Is it possible?????
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2008
Added on Aug 4 2008
1 comment
188 views