Last weekend one of my colleague faced the interview.Interviewer asked him Interface Vs abstract Interface.
He knows Interface he defined it well but for abstract Interface he replied same like interface but keyword abstract is used and it is redundant because interface is also abstract.But here we are explicitly write abstract for abstract Interface.
Interviewer was not happy with the answer.
I am also thinking what can be the best answer.Also same like interface but keyword abstract is used.
Please throw some light on this abstract Interface.
Every method in an interface is public and abstract, and every field in an interface is public, static and final. If you leave out any of these words that doesn't change a thing -- they are still regarded to be there.
If you told an interviewer there is a difference between an interface and an abstract interface, you wouldn't expect to get the job. You sure it wasn't "abstract class"?
Joined: May 27, 2008
This question was asked to my colleague in a interview.His expression was there with awkward sound abstract interface....Then he thinks to better answer it and he answered as same like interface but keyword abstract is used and it is redundant because interface is also abstract.
After weekend my colleague also discussed the same with me.I was also surprised because i never came across such abstract interface term.....
Any way yeah it make sense now after discussion with you guys