Thread: Custom Marker Interface

Forum : Serialization   14 Apr, 2018 19:20
User Image


Joined: 20 Apr, 2017

Points: 100

Threads: 11

Posts: 12

Custom Marker Interface

| Quote Date : 14 Apr, 2018    Views:772    

Is it possible to create custom marker interface?If possible how?If not why?

tags: core java


User Image


Joined : 12 Mar, 2018

Points : 100

Threads: 0

Posts: 13

Re: Custom Marker Interface

Reply Date : 28 Apr, 2018

Marker Interface is the empty interface.We can create an empty interface.But we can't make that interface as marker interface bcz while we use a marker interface these interfaces are the special meaning to JVM to perform some special operation.Java has built-in marker interface like,SerializableClonable & EventListner etc that are understand by JVM.?

Load More

No More Comments