what we should do with interface when create jar file ?
Nakata kokuyo
Ranch Hand
Joined: Apr 13, 2005
Posts: 437
posted
0
hi, good day , say if i have an utility class which implements interface, when i create jar file, what i should do with interfaces ? as it doesn't generate .class ..
Yes compiling any valid Java code will generate .class files. Interfaces are no exception.
Regarding your query on contents of jar file, it can contain classes, source files (ANSCI files), images etc. :roll:
Nakata kokuyo
Ranch Hand
Joined: Apr 13, 2005
Posts: 437
posted
0
thank you , sorry for stupid question, i was thinking only class would generate class , but interface not ..
then how the compiler differentiate that the .class file is belong to class or interface ? and why we can't instantiate interface or abstarct class ? thank you for guidance
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: what we should do with interface when create jar file ?