ECE, 7th Sem
Developed by Sun Microsystems in 1991.
A Programming language.
Successor to C++.
Based on OOPS.
A development environment
Features of java
Compiled and Interpreted
Platform Independent and portable
Robust and secure
Familiar, simple and small
Multithreaded and Interactive
Dynamic and Extensible
public static void main(String args)
Save this file as “Rk.java”.
Open command prompt.
Go to that folder through “cd FolderName”.
Compiled the program with keyword
If any error is found, it’ll indicate.
Run the program with keyword “java Rk”.
Features of OOPS
A class is the blueprint from which
individual objects are created.
Objects are entities of class.
Data hiding technique is called data
Access modifiers are used.
Binding up data member and
It can be defined as the process where
one object acquires the properties of
Polymorphism is the ability of an
object to take on many forms.
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.
TYPES OF EXCEPTION
• Multithreading is a process of executing
multiple threads simultaneously.
• A thread is a lightweight sub-process, a
smallest unit of processing.