Java Basics

1,133 views

Published on

A brief basics of java.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,133
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
78
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  •  Stanford University Network
  • Java Basics

    1. 1. Presented By: Ramkrishna Mishra 5910428 ECE, 7th Sem
    2. 2. INTRODUCTION TO JAVA Developed by Sun Microsystems in 1991. A Programming language. Successor to C++. Based on OOPS. A development environment
    3. 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
    4. 4. HOW TO WRITE A PROGRAM IN JAVA
    5. 5. An Example class Rk { public static void main(String args[]) { System.out.println(“Hello”); } }
    6. 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”.
    7. 7. Features of OOPS 1. 2. 3. 4. 5. 6. Class Object Data abstraction Data encapsulation Inheritance Polymorphism
    8. 8. CLASS A class is the blueprint from which individual objects are created. OBJECT Objects are entities of class.
    9. 9. DATA ABSTRACTION Data hiding technique is called data abstraction. Access modifiers are used. DATA ENCAPSULATION Binding up data member and number function.
    10. 10. 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.
    11. 11. 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.
    12. 12. TYPES OF EXCEPTION TRY CATCH THROW THROWS FINALLY
    13. 13. MULTITHREADING • Multithreading is a process of executing multiple threads simultaneously. • A thread is a lightweight sub-process, a smallest unit of processing.
    14. 14. FOR LISTENING..:)

    ×