Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why classes compile to .class but interface does not to .interface

Tags:

java

interface

Is there any specific reason why interfaces are not compiled into MyInterface.java compiled into .interface file?But any class is compiled into .class file.!

like image 671
Ravisha Avatar asked Feb 10 '10 11:02

Ravisha


1 Answers

Because the point is to indicate that the file is Java byte code (and .class was the extension chosen for that), not the specific language construction.

like image 108
b.roth Avatar answered Oct 06 '22 08:10

b.roth