Wednesday, July 13, 2005

Java is a high Object Oriented level language just like C++ and Smalltalk but it has a lot of added features. It provides facilities like Event Handling, Remote Method Invocation, connecting to any database with ease.

With java one can also do multithreading that allows a user to run more than one thread at a point of time. One can also catch run-time errors with exception handling facility that is provided in Java.

Java also provides a user to create Applets which can be used in the Internet for running any application directly from any website without fearing about any virus.

Java provides a lot of API that helps a user to create application with rich interfaces with a lot of features. This helps a user in creating applications with very good GUI.

Facilities like RMI (Remote Method Invocation) allow a user to run application in a remote network. Java is an also a good language for network programming due to the presence of packages for socket programming.

Java is a platform independent language as one can run a compiled java program (i.e. a .class file) anywhere one wants to where there is a JVM (Java Virtual Machine).

Commands for running a java program abc.java

Compiling a .java file

javac abc.java

After this a abc.class file is formed as the abc.java file is compiled.

Running a .class file

java abc

The above command will run the application by interpreting the abc.java file.