Java Note 1
Java Note 1
Introduction to Java
Shivneet Tripathi
Department of Computer Application
UIET , CSJM University,
Kanpur
Introduction to
Java
JAVA was originated at Sun Microsystems Inc., in 1991.
a program easily.
• Encapsulation
– Hiding the implementation details of a class.
– Forces the user to use an interface to access the data.
• Inheritance
– Process by which one class acquires the properties and
functionalities of the other.
• Polymorphism
– Means the ability of methods to exist in several different
Java is a Simple Language
– Operator overloading,
– Multiple inheritance through classes,
pointers and
– Explicit memory allocation.
Java is a Robust Language
• Windows:
– Set PATH=%PATH%; %JAVA_HOME%\bin
• UNIX:
– Set PATH=$PATH: $JAVA_HOME/bin
Compilation and Execution of Java Program