0

what is the difference b/w .java and .jar extension why we use different extension for same programme ?

23rd Sep 2016, 9:27 AM
Luvkumar Dwivedy
Luvkumar Dwivedy - avatar
5 odpowiedzi
+ 1
Our Java file acts like a normal .cpp file in c++ . You have to compile and run it every time ,, whereas .jar file is an archive of Java programs . .jar file is like an exe file in windows .On double clicking it the program runs . JRE is important for .jar file to execute properly .
23rd Sep 2016, 4:46 PM
Nantha kumar .R
Nantha kumar .R - avatar
0
We don't. .java is a source file. .jar is a java archive of a program that can work like an .exe file for java.
23rd Sep 2016, 11:15 AM
Alex Wood
Alex Wood - avatar
0
how .java converted in to. jar ?
23rd Sep 2016, 11:18 AM
Luvkumar Dwivedy
Luvkumar Dwivedy - avatar
0
in eclipse you can right click the project and there should be an export option.
23rd Sep 2016, 11:19 AM
Alex Wood
Alex Wood - avatar
0
ohk thanks
23rd Sep 2016, 11:23 AM
Luvkumar Dwivedy
Luvkumar Dwivedy - avatar