Professional Documents
Culture Documents
By:A.J.Patankar
Features of Java
Compiled and Interpreted
Platform Independent and Portable
Object Oriented
Robust and Secure
Distributed
Dynamic and Extensible
Scalability and Performance
Supplementary Character Support.
How Java differs from C++
Java does not support Operator Overloading
Java doesn’t have template classes
Java doesn’t support multiple Inheritance.
Java doesn't support global variables
Java doesn’t use Pointers
Destructor function is replaced by finalize()
No header files in Java
Java Environment
JDK comes with a collection of tools that are used for
developing and running java programs includes
Applet Viewer
javac (Java Compiler)
Java (Java Interpreter)
Javap(Java disassembler)
Javah (for C header files)
javadoc
Jdb (Java debugger)
Process of Building and Running Java
Application Program
Text Editor
javac
java
class HelloWorld
{
public static void main (String args[ ])
{
System.out.println(“Hello World!!”);
}
}
Simple Java Program
public static void main (String args[ ]) :
public: Access Specifier defines main as
public type. (Unprotected).
Static: Method belongs to the entire class