SlideShare a Scribd company logo
Welcome
To
JAVA
JAVA
 Java Operating System a general purpose OOPL developed by
Sunmicro System(USA) in the year 1991.
 Originally it was named as OAK & it was renamed in 1995 as
JAVA.
 JAVA can be used to develop two types of programs , these are
Application and Applets.
 When we create applications, java is not much different from
other languages. But in case of an applet, it can be dynamically
downloaded across the network, which can react to user input.
 To execute an application in java, the following two methods can
be adopted :
* Compiling the source code into the BYTE CODE using the java
compiler, i.e. javac
* Executing the byte code, using the JAVA interpreter, i.e. java
Byte code
 The Source code is compiled by the java compiler. The
output of the compiler is not an executable code.
Rather it is an intermediate code called as the BYTE
CODE.
 The byte code is stored in a file having extension
“.class”
 After byte code is generated by the compiler, it is
interpreted by the JAVA interpreter to produce the
programming result.
JAVA Features
Some of the important features are described below
SIMPLE: java is simple because of the availability of
Object Oriented features in it.
SECURED: When an executable program is
downloaded, the risk of viral infection is severe, which
may infect the system with a virus.
PORTABILITY: Many type of computer with different
OS are available almost all computer are connected to
the internet now a days. Therefore, the code must be
sufficiently portable enough so that it can be
dynamically downloaded to the various platforms.
JAVA Features
OBJECT ORIENTED: java is a pure object oriented
programming language. The principle is “everything is
an object” is implemented in java.
ROBUST: java is robust, because it is a strictly typed
language. Due to this, the java compiler checks the
code at compile time to allow the programmer correct
the syntactical errors. It also handles the memory
management mistakes and exceptional condition.
MULTI-THREADED: java supports multi-threaded
programming. Which allow the programmer to write
programs, that may do many things simultaneously.
JAVA Features
 Though it is a Object oriented Programming Language is
supports the following features
o DATA ABSTRACTION : Abstraction refers to the act of
representing essential features without including the
background the explanation details.
o ENCAPSULATION : the wrapping up of data &
function/methods into a single unit is known as
encapsulation
o MODULARITY : Modularity is the property of system that
has been decomposed into a set of cohesive & loosely
coupled modules. So the act of partitioning program into
individual is called modularity.
JAVA Features
o INHERITANCE : It is the capacity of one class of
things to inherit from another class.
o POLYMORPHISM : It is a ability for a data to be
processed in more than one forms. It is a property by
which the same message can be sent to object of
several different classes.
JVM
 Java Virtual Machine
 The java run time system is other wise known as the
JVM.
 Execution of every java program is under the control of
JVM.
 As the source code in JAVA is translated into the byte
code , it becomes easier to run the byte code in a wide
verity of environments.
 Only requirement is the availability of JVM within
than environment.
JVM
JVM
(Byte Code)
Java
Interpreter
Machine
Code
Command Line Argument
 An argument which is supplied/passed to the main()
from the command line at the time of calling the
main() by the java interpreters is called COMMAND
LINE ARGUMENT.
 The arguments supplied from the command line are of
string type arguments. Therefore these arguments are
stored in the parameter of main() which is an array of
string objects i.e. args[]
Method Overloading
 A class can contain two or more methods with same
name but different set of parameters. In this case the
methods are said to be overloaded & the process is
called method overloading.
 In method overloading, methods may or may not have
same return type.
Constructor &
Constructor Overloading
 A constructor is a specialize method/member function
of class
 A constructor has the same name as the class in which
it is declared.
 A constructor is syntactically similar to a method with
only exception that it has no return type not even void.
 Once defined in a class, the constructor is
automatically called immediately after the object is
created.
Constructor &
Constructor Overloading
 Like method overloading, constructor can also be over
loaded.
 Constructor overloading is the process by which two
or more constructor defined in a class with different
list of parameters.
 When overloaded constructor are called, java compiler
calls that constructor whose list of parameter exactly
matches with the values received from the calling
program.
Inheritance
 The mechanism of deriving a new class from an
existing class is called inheritance.
 The class from which the new class is derived is called
SUPER CLASS and the class which is derived is called
SUB CLASS
 Inheritance allows
-> The creation of hierarchical classification
->Code reusability
Types of Inheritance
 Single Inheritance
A
class
B
class
Types of Inheritance
 Multilevel Inheritance
A
• Super
Class
B
• Sub
Class
of A
(Super
class
of C)
C
• Sub
Class
of B
Types of Inheritance
 Hierarchical Inheritance
A
class
X
class
Y
class
Z
class
Method Overriding
 When a method in a subclass is exactly same as in
method in a super class, then method overriding takes
place.
 In method overriding, the subclass and super class
method have same name, same return type and same
parameter list.
 Due to inheritance, the subclass method overrides the
super class method. Therefore when an overridden
method is called from within a subclass, it always
refers to the method define in the sub class
Interface
 Since java does not support multiple inheritance, it
provides an alternate approach to multiple inheritance
and that approach is Interface.
 An interface, is a kind of class that lacks instance
variable and its methods are declared without only
body.
 Therefore using an interface, it is specified that what a
class must do but not how it does it.
 Variable declared with in a interface must have FINAL
declaration
Interface
 Syntax of declaration of variables
static final <type of variable> <variable name>=<value>
E.g. : static final int a=5;
 Syntax of declaration of methods
<return type> <method name>(<parameter list>);
E.g. : float compute(float r);
Package
 Package are container for classes, that are used to keep
the class name space compartmentalized
 Packages are stored in a hierarchical manner and
packages are explicitly imported into new class
definition
 The classes defined inside a package are not accessible
by the code outside that package.
Package
 Declaring package
package <package_name>;
E.g. : package mypack;
Package
 Importing Package
Syntax : import <package_name>.<class_name>/*;
E.g.: import mypack.addcls;
Or
import mypack.*;
Multithreading
 Java provides built in support for multithreaded
programming.
 A multi threaded programming contains two or more
parts that can concurrently.
 Each part of a program is called thread.
 Each thread has its own separate path of execution.
 Multithreading makes the maximum use of CPU.
Thank
you

More Related Content

What's hot

Java Presentation
Java PresentationJava Presentation
Java Presentationpm2214
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Java Lover
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
Elizabeth Thomas
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
Math-Circle
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
CPD INDIA
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Elizabeth alexander
 
Introduction to method overloading &amp; method overriding in java hdm
Introduction to method overloading &amp; method overriding  in java  hdmIntroduction to method overloading &amp; method overriding  in java  hdm
Introduction to method overloading &amp; method overriding in java hdm
Harshal Misalkar
 
Interface in java
Interface in javaInterface in java
Interface in java
PhD Research Scholar
 
Java Tokens
Java  TokensJava  Tokens
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
Sujit Majety
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
arvind pandey
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
Spotle.ai
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
Intelligo Technologies
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
RubaNagarajan
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
RahulAnanda1
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
Surbhi Panhalkar
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
atozknowledge .com
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
R. Sosa
 

What's hot (20)

Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Introduction to method overloading &amp; method overriding in java hdm
Introduction to method overloading &amp; method overriding  in java  hdmIntroduction to method overloading &amp; method overriding  in java  hdm
Introduction to method overloading &amp; method overriding in java hdm
 
Interface in java
Interface in javaInterface in java
Interface in java
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
Java Basic Oops Concept
Java Basic Oops ConceptJava Basic Oops Concept
Java Basic Oops Concept
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 

Similar to Java features

Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2
Techglyphs
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
Kuntal Bhowmick
 
Java
JavaJava
Java notes
Java notesJava notes
Java notes
Upasana Talukdar
 
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptxINDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
Indu65
 
Java for Mainframers
Java for MainframersJava for Mainframers
Java for Mainframers
Rich Helton
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
loidasacueza
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
vmadan89
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
SMIJava
 
Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptx
NitishChaulagai
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
ansariparveen06
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
Krishnaov
 
Java_Roadmap.pptx
Java_Roadmap.pptxJava_Roadmap.pptx
Java_Roadmap.pptx
ssuser814cf2
 
java basic .pdf
java basic .pdfjava basic .pdf
java basic .pdf
Satish More
 
Android Training (Java Review)
Android Training (Java Review)Android Training (Java Review)
Android Training (Java Review)
Khaled Anaqwa
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using ReflectionGanesh Samarthyam
 
20 most important java programming interview questions
20 most important java programming interview questions20 most important java programming interview questions
20 most important java programming interview questions
Gradeup
 
Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8
MISSIASABTAL1
 
1669617800196.pdf
1669617800196.pdf1669617800196.pdf
1669617800196.pdf
venud11
 

Similar to Java features (20)

Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2
 
Java Interview Questions
Java Interview QuestionsJava Interview Questions
Java Interview Questions
 
Java
JavaJava
Java
 
Java notes
Java notesJava notes
Java notes
 
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptxINDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
INDUMATHY- UNIT 1 cs3391 oops introduction to oop and java.pptx
 
Java for Mainframers
Java for MainframersJava for Mainframers
Java for Mainframers
 
Pocket java
Pocket javaPocket java
Pocket java
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
 
Nitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptxNitish Chaulagai Java1.pptx
Nitish Chaulagai Java1.pptx
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
 
Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
 
Java_Roadmap.pptx
Java_Roadmap.pptxJava_Roadmap.pptx
Java_Roadmap.pptx
 
java basic .pdf
java basic .pdfjava basic .pdf
java basic .pdf
 
Android Training (Java Review)
Android Training (Java Review)Android Training (Java Review)
Android Training (Java Review)
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using Reflection
 
20 most important java programming interview questions
20 most important java programming interview questions20 most important java programming interview questions
20 most important java programming interview questions
 
Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8Java syntax-and-grammars-oct8
Java syntax-and-grammars-oct8
 
1669617800196.pdf
1669617800196.pdf1669617800196.pdf
1669617800196.pdf
 

More from Prashant Gajendra

BPUT MCA 5th Sem 2013
BPUT MCA 5th Sem 2013BPUT MCA 5th Sem 2013
BPUT MCA 5th Sem 2013
Prashant Gajendra
 
BPUT MCA 5th Sem 2014
BPUT MCA 5th Sem 2014BPUT MCA 5th Sem 2014
BPUT MCA 5th Sem 2014
Prashant Gajendra
 
BPUT MCA 5th Sem 2015
BPUT MCA 5th Sem 2015BPUT MCA 5th Sem 2015
BPUT MCA 5th Sem 2015
Prashant Gajendra
 
BPUT MCA 2nd sem questions 2015
BPUT MCA 2nd sem questions 2015BPUT MCA 2nd sem questions 2015
BPUT MCA 2nd sem questions 2015
Prashant Gajendra
 
BPUT MCA 4th sem 2015
BPUT MCA 4th sem 2015BPUT MCA 4th sem 2015
BPUT MCA 4th sem 2015
Prashant Gajendra
 
BPUT MCA 4th sem 2014
BPUT MCA 4th sem 2014BPUT MCA 4th sem 2014
BPUT MCA 4th sem 2014
Prashant Gajendra
 
BPUT MCA First sem 2013
BPUT MCA First sem 2013BPUT MCA First sem 2013
BPUT MCA First sem 2013
Prashant Gajendra
 
BPUT MCA 4th sem 2013
BPUT MCA 4th sem 2013BPUT MCA 4th sem 2013
BPUT MCA 4th sem 2013
Prashant Gajendra
 
BPUT MCA 2nd sem 2014
BPUT MCA 2nd sem 2014BPUT MCA 2nd sem 2014
BPUT MCA 2nd sem 2014
Prashant Gajendra
 
BPUT MCA 2nd Semester 2013
BPUT MCA 2nd Semester 2013BPUT MCA 2nd Semester 2013
BPUT MCA 2nd Semester 2013
Prashant Gajendra
 
Bput mca 3rd semester 2013 question
Bput mca 3rd semester 2013 questionBput mca 3rd semester 2013 question
Bput mca 3rd semester 2013 questionPrashant Gajendra
 
BPUT MCA Third Sem Question 2014
BPUT MCA Third Sem Question 2014BPUT MCA Third Sem Question 2014
BPUT MCA Third Sem Question 2014
Prashant Gajendra
 
Cellular Communication Report
Cellular Communication ReportCellular Communication Report
Cellular Communication Report
Prashant Gajendra
 
Cellular communication
Cellular communicationCellular communication
Cellular communication
Prashant Gajendra
 
Speed Detection Camera
Speed Detection CameraSpeed Detection Camera
Speed Detection Camera
Prashant Gajendra
 

More from Prashant Gajendra (15)

BPUT MCA 5th Sem 2013
BPUT MCA 5th Sem 2013BPUT MCA 5th Sem 2013
BPUT MCA 5th Sem 2013
 
BPUT MCA 5th Sem 2014
BPUT MCA 5th Sem 2014BPUT MCA 5th Sem 2014
BPUT MCA 5th Sem 2014
 
BPUT MCA 5th Sem 2015
BPUT MCA 5th Sem 2015BPUT MCA 5th Sem 2015
BPUT MCA 5th Sem 2015
 
BPUT MCA 2nd sem questions 2015
BPUT MCA 2nd sem questions 2015BPUT MCA 2nd sem questions 2015
BPUT MCA 2nd sem questions 2015
 
BPUT MCA 4th sem 2015
BPUT MCA 4th sem 2015BPUT MCA 4th sem 2015
BPUT MCA 4th sem 2015
 
BPUT MCA 4th sem 2014
BPUT MCA 4th sem 2014BPUT MCA 4th sem 2014
BPUT MCA 4th sem 2014
 
BPUT MCA First sem 2013
BPUT MCA First sem 2013BPUT MCA First sem 2013
BPUT MCA First sem 2013
 
BPUT MCA 4th sem 2013
BPUT MCA 4th sem 2013BPUT MCA 4th sem 2013
BPUT MCA 4th sem 2013
 
BPUT MCA 2nd sem 2014
BPUT MCA 2nd sem 2014BPUT MCA 2nd sem 2014
BPUT MCA 2nd sem 2014
 
BPUT MCA 2nd Semester 2013
BPUT MCA 2nd Semester 2013BPUT MCA 2nd Semester 2013
BPUT MCA 2nd Semester 2013
 
Bput mca 3rd semester 2013 question
Bput mca 3rd semester 2013 questionBput mca 3rd semester 2013 question
Bput mca 3rd semester 2013 question
 
BPUT MCA Third Sem Question 2014
BPUT MCA Third Sem Question 2014BPUT MCA Third Sem Question 2014
BPUT MCA Third Sem Question 2014
 
Cellular Communication Report
Cellular Communication ReportCellular Communication Report
Cellular Communication Report
 
Cellular communication
Cellular communicationCellular communication
Cellular communication
 
Speed Detection Camera
Speed Detection CameraSpeed Detection Camera
Speed Detection Camera
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 

Java features

  • 2. JAVA  Java Operating System a general purpose OOPL developed by Sunmicro System(USA) in the year 1991.  Originally it was named as OAK & it was renamed in 1995 as JAVA.  JAVA can be used to develop two types of programs , these are Application and Applets.  When we create applications, java is not much different from other languages. But in case of an applet, it can be dynamically downloaded across the network, which can react to user input.  To execute an application in java, the following two methods can be adopted : * Compiling the source code into the BYTE CODE using the java compiler, i.e. javac * Executing the byte code, using the JAVA interpreter, i.e. java
  • 3. Byte code  The Source code is compiled by the java compiler. The output of the compiler is not an executable code. Rather it is an intermediate code called as the BYTE CODE.  The byte code is stored in a file having extension “.class”  After byte code is generated by the compiler, it is interpreted by the JAVA interpreter to produce the programming result.
  • 4. JAVA Features Some of the important features are described below SIMPLE: java is simple because of the availability of Object Oriented features in it. SECURED: When an executable program is downloaded, the risk of viral infection is severe, which may infect the system with a virus. PORTABILITY: Many type of computer with different OS are available almost all computer are connected to the internet now a days. Therefore, the code must be sufficiently portable enough so that it can be dynamically downloaded to the various platforms.
  • 5. JAVA Features OBJECT ORIENTED: java is a pure object oriented programming language. The principle is “everything is an object” is implemented in java. ROBUST: java is robust, because it is a strictly typed language. Due to this, the java compiler checks the code at compile time to allow the programmer correct the syntactical errors. It also handles the memory management mistakes and exceptional condition. MULTI-THREADED: java supports multi-threaded programming. Which allow the programmer to write programs, that may do many things simultaneously.
  • 6. JAVA Features  Though it is a Object oriented Programming Language is supports the following features o DATA ABSTRACTION : Abstraction refers to the act of representing essential features without including the background the explanation details. o ENCAPSULATION : the wrapping up of data & function/methods into a single unit is known as encapsulation o MODULARITY : Modularity is the property of system that has been decomposed into a set of cohesive & loosely coupled modules. So the act of partitioning program into individual is called modularity.
  • 7. JAVA Features o INHERITANCE : It is the capacity of one class of things to inherit from another class. o POLYMORPHISM : It is a ability for a data to be processed in more than one forms. It is a property by which the same message can be sent to object of several different classes.
  • 8. JVM  Java Virtual Machine  The java run time system is other wise known as the JVM.  Execution of every java program is under the control of JVM.  As the source code in JAVA is translated into the byte code , it becomes easier to run the byte code in a wide verity of environments.  Only requirement is the availability of JVM within than environment.
  • 10. Command Line Argument  An argument which is supplied/passed to the main() from the command line at the time of calling the main() by the java interpreters is called COMMAND LINE ARGUMENT.  The arguments supplied from the command line are of string type arguments. Therefore these arguments are stored in the parameter of main() which is an array of string objects i.e. args[]
  • 11. Method Overloading  A class can contain two or more methods with same name but different set of parameters. In this case the methods are said to be overloaded & the process is called method overloading.  In method overloading, methods may or may not have same return type.
  • 12. Constructor & Constructor Overloading  A constructor is a specialize method/member function of class  A constructor has the same name as the class in which it is declared.  A constructor is syntactically similar to a method with only exception that it has no return type not even void.  Once defined in a class, the constructor is automatically called immediately after the object is created.
  • 13. Constructor & Constructor Overloading  Like method overloading, constructor can also be over loaded.  Constructor overloading is the process by which two or more constructor defined in a class with different list of parameters.  When overloaded constructor are called, java compiler calls that constructor whose list of parameter exactly matches with the values received from the calling program.
  • 14. Inheritance  The mechanism of deriving a new class from an existing class is called inheritance.  The class from which the new class is derived is called SUPER CLASS and the class which is derived is called SUB CLASS  Inheritance allows -> The creation of hierarchical classification ->Code reusability
  • 15. Types of Inheritance  Single Inheritance A class B class
  • 16. Types of Inheritance  Multilevel Inheritance A • Super Class B • Sub Class of A (Super class of C) C • Sub Class of B
  • 17. Types of Inheritance  Hierarchical Inheritance A class X class Y class Z class
  • 18. Method Overriding  When a method in a subclass is exactly same as in method in a super class, then method overriding takes place.  In method overriding, the subclass and super class method have same name, same return type and same parameter list.  Due to inheritance, the subclass method overrides the super class method. Therefore when an overridden method is called from within a subclass, it always refers to the method define in the sub class
  • 19. Interface  Since java does not support multiple inheritance, it provides an alternate approach to multiple inheritance and that approach is Interface.  An interface, is a kind of class that lacks instance variable and its methods are declared without only body.  Therefore using an interface, it is specified that what a class must do but not how it does it.  Variable declared with in a interface must have FINAL declaration
  • 20. Interface  Syntax of declaration of variables static final <type of variable> <variable name>=<value> E.g. : static final int a=5;  Syntax of declaration of methods <return type> <method name>(<parameter list>); E.g. : float compute(float r);
  • 21. Package  Package are container for classes, that are used to keep the class name space compartmentalized  Packages are stored in a hierarchical manner and packages are explicitly imported into new class definition  The classes defined inside a package are not accessible by the code outside that package.
  • 22. Package  Declaring package package <package_name>; E.g. : package mypack;
  • 23. Package  Importing Package Syntax : import <package_name>.<class_name>/*; E.g.: import mypack.addcls; Or import mypack.*;
  • 24. Multithreading  Java provides built in support for multithreaded programming.  A multi threaded programming contains two or more parts that can concurrently.  Each part of a program is called thread.  Each thread has its own separate path of execution.  Multithreading makes the maximum use of CPU.