Java is a programming language released by Sun Microsystems in 1995.java contains many features possessed by c and c++ since its developed after those programming but is most dependent on the features that c++ had ,some says like java is the advance face of c and c++.
java is said as WORA means write once read any where means once the java programme is written and compiled the code can be executed in any machine with any architecture.
Do you know why its called as write once read any where.Look at the diagram given below and i have also described it.
We write the code in java with the extension .java and as soon as the code is compiled by the compiler and if there’s no error in the code than automatically a file is made with the same name for the java file but with the extension .class.The java virtual machine uses the class file and converts that class file into the code depending upon the system we are going to run that programme so user does not have to worry about the variation in the operating system and the hardware .JVM is simply a software that allows to create a code that will support on the system.Thus we can say that the java code are compiled and interpreted .
so with java we can make any desktop application ,console application the term console means it will be running on the command prompt the black screen we see after running cmd prompt,web application that runs on the website and most importantly the distributed application.