+ 3
What are the differences between .jar and .apk?
Hi, I am quite new in programming and unfortunately curious about many things. I just found out that .jar and .apk both uses Java. I have decompiled some jar and apk files and read the source codes. Though, I didn't understand most of the lines but I found similarities between both. Now, what are the key differences btween jar and apk?
3 Answers
+ 3
.apk =>
AndroidĀ Package (APK) is the packageĀ fileĀ format used by theĀ AndroidĀ operating system for distribution and installation of mobile apps, mobile games and middleware. ... AnĀ APK fileĀ contains all of a program's code (such as .dexĀ files), resources, assets, certificates, and manifestĀ file.
.jar =>
AĀ JARĀ (Java ARchive) is a packageĀ fileĀ format typically used to aggregate many Java classĀ filesĀ and associated metadata and resources (text, images, etc.) into oneĀ fileĀ for distribution.Ā JAR filesĀ are archiveĀ filesĀ that include a Java-specific manifestĀ file. They are built on the ZIP format and typically have a .
+ 1
AMOGHA. A. K. So why cant we run jars on android?