SlideShare a Scribd company logo
1 of 26
A
PRESENTATION
ON
BASIC OF JAVA
SUBMITTED BY:-
DIVAS KUMAR GUPTAdivas007developer@gmail.com 1
INTRODUCTION OF JAVA
JAVA is a programming
language and a platform
independent language. Which
follow the concept of oops.
Platform independent that
means its byte code is able to run
in any o/s. It has own (JRE) java
runtime environment.divas007developer@gmail.com 2
The green project begain in
1991.
Original language name : OAK.
Name changed to java.
First public release in 1995.
Write once run everywhere.
HISTORY OF JAVA
JAVA IS USED.
There are many devices where java
is currently used . Some of them
are as follows:-
Desktop application
such as acrobat
reader, media player,
antivirus etc.
Web application
such as irctc.co.in,
java.com etc.
Enterprises application
such as banking
application, mobile
embedded system, Smart
card Robotics, Games etc.
divas007developer@gmail.com 4
FEATURES OF JAVA
Simple
Object Oriented
Dynamic
Secured
High performance
MultithreadedRobust
Architecture neutral
Portable
Distributed
JAVA
divas007developer@gmail.com 5
•System is based on c++ .
•Removed many confusing
and/or rarely used feature. Ex
:- pointer, operator
overloading etc.
•No need to remove
unreferenced objects
because there is automatic
garbage collection in java.
JAVA
language
is simple
because :-
SIMPLE
divas007developer@gmail.com 6
OBJECT -
ORIENTED
Class
/object
inheritance
Abstraction
Encapsulation
Data hiding
Basic
concept
of OOPS
are :-
divas007developer@gmail.com 7
PLATFORM-INDEPENDENT
JAVA COMPILER
JAVA BYTE CODE
Windows 95 Macintosh Solaris Windows NT
(translator)
(same for all platforms)
divas007developer@gmail.com 8
PLATFORM INDEPENDENCE
Windows 7
Macintosh
Solaris
Windows NT
J
V
M
DEMO
.class
DEMO.
java
After
compilation it
create .class it
also known as
byte code.
divas007developer@gmail.com 9
In JAVA , there is no use of pointer
that’s why JAVA is secure.
Because no one interacts with there
memory access so there is no chance to
hack or destroy our data from hacker.
SECURED
divas007developer@gmail.com
10
It means java program execute in
any platform it is not depend
upon any particular
platform(architec) . Like:-
windows, mac, sun solaris etc.
ARCHITECTURE NEUTRAL
divas007developer@gmail.com 11
Robust simply means Error tolerance.
Java uses strong memory management.
There are lack of pointer that avoids security problem.
There is automatic garbage collection in java.
There is exception handling and type checking mechanism in java.
All these points makes java robust.
ROBUST
divas007developer@gmail.com
12
We can carry the java
byte code to any
platform.
divas007developer@gmail.com 13
PORTABLE
Java is faster than traditional
interpreter or compiler. Because
its 80 % syntax is based on c , c++
which is directly interact with o/s.
divas007developer@gmail.com 14
High performance
We can create distributed applications in java.
Distributed computing involves several computer on a
network working working together.
Java is designed to make distributed computing easy with
the networking capability that is inherently integrated
into it.
divas007developer@gmail.com 15
Distributed
divas007developer@gmail.com 16
Example of distributed
Bank
account
SBI ATM PNB ATM
ICICi ATM DENA ATM
JAVA programs are compiled into byte code
that can be stored on any type machine.
Interpreted is used to read byte code and
execute it.
divas007developer@gmail.com 17
INTERPRETED
A thread is like a separate program executing
concurrently.
We can write java program that deal with many task at
once by defining multiple thread.
The main advantage of multi-threading is that if shares
the same memory. Thread are important for multimedia,
web-application etc.
divas007developer@gmail.com 18
Multi-threaded
divas007developer@gmail.com 19
First java program in java
class simple
{
Public static void main(String args[])
{
System.out.Println(“Hello java”);
}
}
Save the file as simple.java
To compile:- javac simple.java
To run:- java simple
Out put :- Hello java
 Open command prompt
 Copy the path of bin folder
 Write in command prompt
 Set path= copied path
ex:- set path = C:Program FilesJavajdk1.7.0_25bin;.;
divas007developer@gmail.com 20
Set the temporary path of jdk
we need to follow these steps:-
•Local variable
•Instance variable
•Static variable
Variable is a
name of
memory
location.
There are
three types of
variable.divas007developer@gmail.com 21
Variable in java
•Primitive
•Non primitive
There are
two types
of data
types in
java.divas007developer@gmail.com 22
Data type in java
Local variable:- A variable that is declare inside the
method is called local variable. Local variable must be
initialized.
Instance variable:- A variable that is declared inside the
class but outside the method is called instance variable
.it is not declared as static.
Static variable:- A variable that is declared as static is
called static variable. It can’t be local.
divas007developer@gmail.com 23
Types of variable
divas007developer@gmail.com 24
Class test
{
Int x; //instance variable
Static int y; //static variable
Void sum() {int x=5;} //local variable
Public static void main(String args[])
{
System.out.Println(“Example of variable”);
}
}
//static method
Variable example
it
will
countinue…………..
divas007developer@gmail.com 25
THANKS
divas007developer@gmail.com 26

More Related Content

What's hot

Netbeans
NetbeansNetbeans
Netbeansacosdt
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?kanchanmahajan23
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of JavaFu Cheng
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
itft-Java evolution
itft-Java evolutionitft-Java evolution
itft-Java evolutionAtul Sehdev
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology dM Technologies
 
Advantages of java programming language
Advantages of java programming languageAdvantages of java programming language
Advantages of java programming languageamiluafiah
 
J2EE Struts with Hibernate Framework
J2EE Struts with Hibernate FrameworkJ2EE Struts with Hibernate Framework
J2EE Struts with Hibernate Frameworkmparth
 
Chapter 1. java programming language overview
Chapter 1. java programming language overviewChapter 1. java programming language overview
Chapter 1. java programming language overviewJong Soon Bok
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1Qualys
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programmingElizabeth Thomas
 

What's hot (20)

Introduction to java technology
Introduction to java technologyIntroduction to java technology
Introduction to java technology
 
Features of java 02
Features of java 02Features of java 02
Features of java 02
 
Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
 
Netbeans
NetbeansNetbeans
Netbeans
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
What are the popular features of java?
What are the popular features of java?What are the popular features of java?
What are the popular features of java?
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
 
History of java
History of javaHistory of java
History of java
 
Java JVM
Java JVMJava JVM
Java JVM
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
itft-Java evolution
itft-Java evolutionitft-Java evolution
itft-Java evolution
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology
 
Advantages of java programming language
Advantages of java programming languageAdvantages of java programming language
Advantages of java programming language
 
J2EE Struts with Hibernate Framework
J2EE Struts with Hibernate FrameworkJ2EE Struts with Hibernate Framework
J2EE Struts with Hibernate Framework
 
Chapter 1. java programming language overview
Chapter 1. java programming language overviewChapter 1. java programming language overview
Chapter 1. java programming language overview
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Java
JavaJava
Java
 
History of Java 2/2
History of Java 2/2History of Java 2/2
History of Java 2/2
 

Viewers also liked

Generations of computer
Generations of computerGenerations of computer
Generations of computerJan Ralph
 
Computer programming1
Computer programming1Computer programming1
Computer programming1A A
 
Computer generations powerpoint slide
Computer generations powerpoint slideComputer generations powerpoint slide
Computer generations powerpoint slideMd Raseduzzaman
 
GENERATION OF COMPUTER
GENERATION OF COMPUTERGENERATION OF COMPUTER
GENERATION OF COMPUTERpraveenappy
 
B.sc i agri u 1 operating system concept & computer generation
B.sc i agri u 1 operating system concept & computer generationB.sc i agri u 1 operating system concept & computer generation
B.sc i agri u 1 operating system concept & computer generationRai University
 
Generation of computer
Generation of computerGeneration of computer
Generation of computerMainul Morshed
 
Generation of computer
Generation of computerGeneration of computer
Generation of computerMukul Kumar
 
Computer Generation and Function
Computer Generation and FunctionComputer Generation and Function
Computer Generation and FunctionSharon Jacinto
 
Generation of computer
Generation of computerGeneration of computer
Generation of computerargusacademy
 
Generation of computer
Generation of computerGeneration of computer
Generation of computernayabirum
 
Generation of computer (1978 1985)
Generation of computer (1978 1985)Generation of computer (1978 1985)
Generation of computer (1978 1985)Enter Exit
 
Generation of computer
Generation of computerGeneration of computer
Generation of computerkishokaj
 
generation of computer by Aiman Zakir
generation of computer by Aiman Zakirgeneration of computer by Aiman Zakir
generation of computer by Aiman ZakirNisha Ali
 
computer generation,history of computer, computer basic,what is computer,com...
 computer generation,history of computer, computer basic,what is computer,com... computer generation,history of computer, computer basic,what is computer,com...
computer generation,history of computer, computer basic,what is computer,com...Divas Gupta
 
Generation of computer
Generation of computerGeneration of computer
Generation of computerNiti Arora
 

Viewers also liked (20)

Desktop
DesktopDesktop
Desktop
 
Comp generations 09
Comp generations 09Comp generations 09
Comp generations 09
 
Generations of computer
Generations of computerGenerations of computer
Generations of computer
 
Computer programming1
Computer programming1Computer programming1
Computer programming1
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
5 GENERATIONS OF COMPUTER
5 GENERATIONS OF COMPUTER5 GENERATIONS OF COMPUTER
5 GENERATIONS OF COMPUTER
 
Computer Generations
Computer GenerationsComputer Generations
Computer Generations
 
Computer generations powerpoint slide
Computer generations powerpoint slideComputer generations powerpoint slide
Computer generations powerpoint slide
 
GENERATION OF COMPUTER
GENERATION OF COMPUTERGENERATION OF COMPUTER
GENERATION OF COMPUTER
 
B.sc i agri u 1 operating system concept & computer generation
B.sc i agri u 1 operating system concept & computer generationB.sc i agri u 1 operating system concept & computer generation
B.sc i agri u 1 operating system concept & computer generation
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Computer Generation and Function
Computer Generation and FunctionComputer Generation and Function
Computer Generation and Function
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Generation of computer (1978 1985)
Generation of computer (1978 1985)Generation of computer (1978 1985)
Generation of computer (1978 1985)
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
generation of computer by Aiman Zakir
generation of computer by Aiman Zakirgeneration of computer by Aiman Zakir
generation of computer by Aiman Zakir
 
computer generation,history of computer, computer basic,what is computer,com...
 computer generation,history of computer, computer basic,what is computer,com... computer generation,history of computer, computer basic,what is computer,com...
computer generation,history of computer, computer basic,what is computer,com...
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 

Similar to Javappt

Similar to Javappt (20)

Ch2
Ch2Ch2
Ch2
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
 
Java-Unit-I.ppt
Java-Unit-I.pptJava-Unit-I.ppt
Java-Unit-I.ppt
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Java 2 computer science.pptx
Java 2 computer science.pptxJava 2 computer science.pptx
Java 2 computer science.pptx
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 
Java session2
Java session2Java session2
Java session2
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java basic introduction
Java basic introductionJava basic introduction
Java basic introduction
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unit
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
 
Java course-in-mumbai
Java course-in-mumbaiJava course-in-mumbai
Java course-in-mumbai
 

Recently uploaded

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

Javappt

  • 1. A PRESENTATION ON BASIC OF JAVA SUBMITTED BY:- DIVAS KUMAR GUPTAdivas007developer@gmail.com 1
  • 2. INTRODUCTION OF JAVA JAVA is a programming language and a platform independent language. Which follow the concept of oops. Platform independent that means its byte code is able to run in any o/s. It has own (JRE) java runtime environment.divas007developer@gmail.com 2
  • 3. The green project begain in 1991. Original language name : OAK. Name changed to java. First public release in 1995. Write once run everywhere. HISTORY OF JAVA
  • 4. JAVA IS USED. There are many devices where java is currently used . Some of them are as follows:- Desktop application such as acrobat reader, media player, antivirus etc. Web application such as irctc.co.in, java.com etc. Enterprises application such as banking application, mobile embedded system, Smart card Robotics, Games etc. divas007developer@gmail.com 4
  • 5. FEATURES OF JAVA Simple Object Oriented Dynamic Secured High performance MultithreadedRobust Architecture neutral Portable Distributed JAVA divas007developer@gmail.com 5
  • 6. •System is based on c++ . •Removed many confusing and/or rarely used feature. Ex :- pointer, operator overloading etc. •No need to remove unreferenced objects because there is automatic garbage collection in java. JAVA language is simple because :- SIMPLE divas007developer@gmail.com 6
  • 8. PLATFORM-INDEPENDENT JAVA COMPILER JAVA BYTE CODE Windows 95 Macintosh Solaris Windows NT (translator) (same for all platforms) divas007developer@gmail.com 8
  • 9. PLATFORM INDEPENDENCE Windows 7 Macintosh Solaris Windows NT J V M DEMO .class DEMO. java After compilation it create .class it also known as byte code. divas007developer@gmail.com 9
  • 10. In JAVA , there is no use of pointer that’s why JAVA is secure. Because no one interacts with there memory access so there is no chance to hack or destroy our data from hacker. SECURED divas007developer@gmail.com 10
  • 11. It means java program execute in any platform it is not depend upon any particular platform(architec) . Like:- windows, mac, sun solaris etc. ARCHITECTURE NEUTRAL divas007developer@gmail.com 11
  • 12. Robust simply means Error tolerance. Java uses strong memory management. There are lack of pointer that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points makes java robust. ROBUST divas007developer@gmail.com 12
  • 13. We can carry the java byte code to any platform. divas007developer@gmail.com 13 PORTABLE
  • 14. Java is faster than traditional interpreter or compiler. Because its 80 % syntax is based on c , c++ which is directly interact with o/s. divas007developer@gmail.com 14 High performance
  • 15. We can create distributed applications in java. Distributed computing involves several computer on a network working working together. Java is designed to make distributed computing easy with the networking capability that is inherently integrated into it. divas007developer@gmail.com 15 Distributed
  • 16. divas007developer@gmail.com 16 Example of distributed Bank account SBI ATM PNB ATM ICICi ATM DENA ATM
  • 17. JAVA programs are compiled into byte code that can be stored on any type machine. Interpreted is used to read byte code and execute it. divas007developer@gmail.com 17 INTERPRETED
  • 18. A thread is like a separate program executing concurrently. We can write java program that deal with many task at once by defining multiple thread. The main advantage of multi-threading is that if shares the same memory. Thread are important for multimedia, web-application etc. divas007developer@gmail.com 18 Multi-threaded
  • 19. divas007developer@gmail.com 19 First java program in java class simple { Public static void main(String args[]) { System.out.Println(“Hello java”); } } Save the file as simple.java To compile:- javac simple.java To run:- java simple Out put :- Hello java
  • 20.  Open command prompt  Copy the path of bin folder  Write in command prompt  Set path= copied path ex:- set path = C:Program FilesJavajdk1.7.0_25bin;.; divas007developer@gmail.com 20 Set the temporary path of jdk we need to follow these steps:-
  • 21. •Local variable •Instance variable •Static variable Variable is a name of memory location. There are three types of variable.divas007developer@gmail.com 21 Variable in java
  • 22. •Primitive •Non primitive There are two types of data types in java.divas007developer@gmail.com 22 Data type in java
  • 23. Local variable:- A variable that is declare inside the method is called local variable. Local variable must be initialized. Instance variable:- A variable that is declared inside the class but outside the method is called instance variable .it is not declared as static. Static variable:- A variable that is declared as static is called static variable. It can’t be local. divas007developer@gmail.com 23 Types of variable
  • 24. divas007developer@gmail.com 24 Class test { Int x; //instance variable Static int y; //static variable Void sum() {int x=5;} //local variable Public static void main(String args[]) { System.out.Println(“Example of variable”); } } //static method Variable example