answered question
The major advantages of Java:Object OrientedWrite once, run anywhere. Java has better portability than any other languages.Support multi-threading, socket communication, automatic garbage collectionSupport web based application (JSP, Servlet, Applet), distributed application (RMI, EJB, Socket) and network protocols (HTTP)Because of it virtual machine it is more secure.