2. INTRODUCTION TO
JAVA
ï±Developed by Sun Microsystems in 1991.
ï±A Programming language.
ï±Successor to C++.
ï±Based on OOPS.
ï±A development environment
3. Features of java
1.
2.
3.
4.
5.
6.
7.
8.
9.
Compiled and Interpreted
Platform Independent and portable
Object- oriented
Robust and secure
Distributed
Familiar, simple and small
Multithreaded and Interactive
High performance
Dynamic and Extensible
6. Save this file as âRk.javaâ.
Open command prompt.
Go to that folder through âcd FolderNameâ.
Compiled the program with keyword
âjavac Rk.javaâ
If any error is found, itâll indicate.
Run the program with keyword âjava Rkâ.
9. CLASS
A class is the blueprint from which
individual objects are created.
OBJECT
Objects are entities of class.
10. DATA ABSTRACTION
Data hiding technique is called data
abstraction.
Access modifiers are used.
DATA ENCAPSULATION
Binding up data member and
number function.
11. INHERITANCE
It can be defined as the process where
one object acquires the properties of
another.
POLYMORPHISM
Polymorphism is the ability of an
object to take on many forms.
12.
13. WHAT ARE EXCEPTION?
When an error occurs within a method,
the method creates an object and hands
it off to the runtime system. The object,
called an exception object, contains
information about the error.
15. MULTITHREADING
âą Multithreading is a process of executing
multiple threads simultaneously.
âą A thread is a lightweight sub-process, a
smallest unit of processing.