Why are interface methods public?


At second glance a simple question in a German Java forum turned out to be quite interesting. Why do interface methods in Java have to be public? Bug entries covering this topic get closed with pseudo explanations like “Because they are intended to be public.”.

Did you ever stumble across a good explanation about why the language designer chose not leave the visibility up to the developers? Or can you think of any?

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
Can’t contact the Anaheim Ducks by email
Now I got a Second Life

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!