What are the differences between .jar and .apk? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

3rd Jun 2020, 2:25 PM
Mahdee Mohammad
Mahdee Mohammad - avatar
2 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 .
3rd Jun 2020, 2:36 PM
Omkar Kamat
Omkar Kamat - avatar
+ 1
AMOGHA. A. K. So why cant we run jars on android?
7th Jun 2020, 11:35 AM
Mahdee Mohammad
Mahdee Mohammad - avatar