Me and my friends wondered if there really is a difference inside the JVM between interfaces and pure abstract classes, or if it is just really syntactic sugar.
I don’t really see why there would be difference, but it might not be so far-fetched.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as bytecode (
.classfile) is concerned, they are completely different:From 4.1 The ClassFile Structure:
Clearly class can have a single superclass (
abstractor not) and multiple implemented interfaces. It is a limitation of JVM, not a Java (the language) restriction.