Java Interview Question And Answer What is Marker Interface Explain Java Interview

Опубликовано: 30 Ноябрь 2013
на канале: Interview DOT
2,906
26

Click here -    / @interviewdot   to get notifications. Java Interview Question And Answer What is Marker Interface Explain Java Interview

What is "Marker Interface" in Java ? Java Interview Question And Answer

Marker interface is used as a tag to inform a message to the java compiler so that it can add special behaviour to the class implementing it. Java marker interface has no members in it.

For example "java.io.Serializable" marker interface. It does not has any members defined it it. When a java class is to be serialized, you should intimate the java compiler in some way that there is a possibility of serializing this java class.

"we are intimating the java compiler to add a special behaviour for the class marked with Interface"

"An interface is called a marker interface when it is provides an intimation to the compiler so that java compiler can provide special behaviour to it at runtime and they do not have any method declarations".
A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-re...


На этой странице сайта вы можете посмотреть видео онлайн Java Interview Question And Answer What is Marker Interface Explain Java Interview длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Interview DOT 30 Ноябрь 2013, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,906 раз и оно понравилось 26 зрителям. Приятного просмотра!