Thread: Custom Marker Interface

Forum : Serialization   14-4-2018 03:20:24 PM
User Image
SreeKanth9

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 11

Posts: 12

Custom Marker Interface

| Quote Date : Apr 14, 2018    Views:316    

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

tags: core java

Comments

User Image
javaMad

Newbie

Joined : Mar 12, 2018

Points : 100

Threads: 0

Posts: 13

Re: Custom Marker Interface

Reply Date : Apr 28, 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