Hello everybody, I want to know if it's legal to use abstract modifier with interface definition. i.e abstract interface E{} I know that interface is implicitly abstract & it is better not to use abstract modifier explictly but if we use it then it compiles fine. So if the question is whether it is legal or not what should be the answer. Regards Kiran.
Thanks Ajith. Actually there was a Question in Sun Certified Java Programmer Book & it says that this is illegal. That left me in doubt. Regards, Kiran.
I am not an expert at this. I tried it myself andf it compiles and I am satisfied with Ajith's answer. However I think I know why the book says it's wrong...because according to the book, an abstract method cannot have a body. So the curly braces are wrong.