16
JAVA PROGRAMMING Presented By: Ramkrishna Mishra 5910428 ECE, 7 th Sem

Java Basics

Embed Size (px)

DESCRIPTION

A brief basics of java.

Citation preview

Page 1: Java Basics

JAVA PROGRAMMI

NGPresented By:Ramkrishna Mishra5910428ECE, 7th Sem

Page 2: Java Basics

INTRODUCTION TO JAVA

Developed by Sun Microsystems in 1991.

A Programming language.Successor to C++.Based on OOPS.A development environment

Page 3: Java Basics

Features of java1. Compiled and Interpreted

2. Platform Independent and portable3. Object- oriented4. Robust and secure5. Distributed6. Familiar, simple and small7. Multithreaded and Interactive8. High performance9. Dynamic and Extensible

Page 4: Java Basics

HOW TO WRITE A

PROGRAM IN JAVA

Page 5: Java Basics

class Rk{ public static void main(String args[]) { System.out.println(“Hello”); } }

An Example

Page 6: Java Basics

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”.

Page 7: Java Basics

OOPS CONCEPT

Page 8: Java Basics

Features of OOPS1. Class 2. Object3. Data abstraction4. Data encapsulation5. Inheritance6. Polymorphism

Page 9: Java Basics

CLASSA class is the blueprint from which individual objects are created.

OBJECTObjects are entities of class.

Page 10: Java Basics

DATA ABSTRACTIONData hiding technique is called

data abstraction.Access modifiers are used.

DATA ENCAPSULATIONBinding up data member and number function.

Page 11: Java Basics

INHERITANCEIt can be defined as the process where one object acquires the properties of another.

POLYMORPHISMPolymorphism is the ability of an object to take on many forms.

Page 12: Java Basics
Page 13: Java Basics

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.

Page 14: Java Basics

TYPES OF EXCEPTION

TRYCATCHTHROWTHROWSFINALLY

Page 15: Java Basics

MULTITHREADING•Multithreading is a process of executing multiple threads simultaneously.

•A thread is a lightweight sub-process, a smallest unit of processing.

Page 16: Java Basics

FOR LISTENING..:)

THANK YOU