As you know, Java is a programming language which was released by Sun Micro System in 1995. Java is secure, reliable and fast. With the help of Java, we can create a lots of Desktop applications, mobile applications, games, networking applications, business applications and small to large scale web applications and much more.
A Java application is mostly developed on one platform like MS Window and then can be deployed to any other Platform like Linux. Every target platform needs a JRE (Java Run time Environment) installation for execution of Java application. Different development tools are available for assistance in this deployment process. A Java Application is mostly compressed in JAR (Java Archive) File and then deployed it to any operating system.
Here are general steps used to develop a Java application which are
1- Write Java codes using an editor which may a simple text editor like Notepad or Programmer editor like TextPad, EditPlus or a Integrated development environment ( IDE ) like NetBeans IDE, Eclipse IDE, Oracle JDeveloper etc. In this step .java extension source code file is created like myJavaClass.java.
2- Compile .java source file using the Java compiler (javac) to create intermediate byte code files with .Class extension. Byte Code file is a universal type file which can run on any supporting Operating system having its required JVM (Java virtual machine)
3- To execute / Run java byte code .class file, Java interpreter (java) is used. The byte code is interpreted at run time on any platform that has a Java Virtual Machine (JVM).
4- Optionally, you can also debug the your java application using a Java debugger. Java debugger are available in any Java IDE like NetBeans, Eclipse, oralce Jdeveloper etc for debugging the java codes.
This process is summarized in the following diagram: