+ 8
A question about file format
What file format is used for saving runnable written Java code files?
9 Respostas
+ 7
Thank you for the feedback : )
+ 6
.java absolutely
+ 6
KayDee You can compress several files in a .zip file for sharing e.t.c. Likewise many .java files are compressed together in a .jar file.
+ 4
Actually at first the java file has an extension ".java" but after compilation using "javac" command a ".class" file is created. Which is executed when we use "java" command in the terminal and this .class file can further be packaged to create a .jar file. Which is platform independent. One can also create a windows executable ".exe" from ".jar" file using LAUNCH4J but this would be platform specific , hence not recommended.
I hope you understood.
*Applies mostly to JAVA SE version.
+ 3
.java i think?
+ 3
Arushi Singhania then what does .jar defines?
+ 3
Arushi Singhania I googled it! .jar stands for Java ARchive.
+ 3
.java files are the source code files. When they are compiled, they are stored as .class files and can be compressed into a single executable .jar archive.
+ 1
Java "executables" are either .class or .jar files. It's common to deliver a script (.bat file for Windows) with a Java program to run it.