SlideShare une entreprise Scribd logo
1  sur  14
Mrs. Yoast 1
Why Java
Mrs. Yoast 2
Why Java
 Java is simple
 No pointers
 Automatic memory management
 Simpler object-oriented techiques
 Streamlined syntax
Mrs. Yoast 3
Java Is Object-oriented
 Data can be modeled virtually as it
exists physically
 Objects can be assigned
properties (or data)
 Objects can be assigned behaviors
(or methods)
 Java uses inheritance
 Java uses polymorphism
 Java uses interfaces
Mrs. Yoast 4
Java is Distributed
 An application can be broken up
into multiple programs
 Each program can run on a
different computer than the other
pieces
 Each piece can talk to the others –
making a single “distributed”
application
Mrs. Yoast 5
Distributed Programs
Sample
Computer 1
Program 1
Web Server
Computer 2
Program 2
IBM PC
Computer 3
Program 3
Database
Server
Mrs. Yoast 6
Java Is Interpreted
 C++ Program
Source
Code
(prog.cpp)
Executable
Program
(prog.exe)
Executable Program
IBM PC
Text File
Machine
Language
Compiles
On PC
Mrs. Yoast 7
Why Won’t This Work?
Executable Program
UNIX Server
X
Mrs. Yoast 8
Java Is Interpreted
Source
Code
(prog.cpp)
Executable
Program
(prog.exe)
Executable Program
IBM PC
Text File
Compiles
On PC
Bytecode
Java Virtual Machine (Java to IBM PC)
Mrs. Yoast 9
So It Can Be Used on
Another Platform
Executable Program
IBM PC
Java Virtual Machine (Java to IBM PC)
This WILL Work
Mrs. Yoast 10
Java is Robust
 Java checks for errors early
 Java can’t write over memory
locations
 Java can catch runtime errors and
handle them
Mrs. Yoast 11
Java IS Secure
 Java is designed for networks
 Java is secure by design
Java is Platform-
independent
 Java programs run on any platform
that has a JVM
 Java applets run on most web
browsers.
Mrs. Yoast 12
Java is Multithreaded
 Multithreaded applications allow
several processes to execute
simultaneously
 Several clients can be handled
simultaneously
Mrs. Yoast 13
Java is Dynamic
 If one client is running part of a
Java class, and that class is
changed, the client will continue to
run the original version
 Subsequent clients will begin
running the new version while the
original client continues to run the
original class
Mrs. Yoast 14
Sample – Hello World
//Title: Hello World
//Version: 1.0
//Date: Aug. 15th, 2014
//Author: Mrs. Yoast
//Description: Hello World Program
public class HelloWorld
{
public static void main (String args[])
{
System.out.println(“Hello World.”);
}//ends main
}//ends HelloWorld

Contenu connexe

En vedette

Gis tutorial2013
Gis tutorial2013Gis tutorial2013
Gis tutorial2013
Terry Yoast
 

En vedette (11)

JavaYDL4
JavaYDL4JavaYDL4
JavaYDL4
 
JavaYDL14
JavaYDL14JavaYDL14
JavaYDL14
 
JavaYDL11
JavaYDL11JavaYDL11
JavaYDL11
 
Gis tutorial2013
Gis tutorial2013Gis tutorial2013
Gis tutorial2013
 
08slide
08slide08slide
08slide
 
JavaYDL1
JavaYDL1JavaYDL1
JavaYDL1
 
JavaYDL12
JavaYDL12JavaYDL12
JavaYDL12
 
JavaYDL6
JavaYDL6JavaYDL6
JavaYDL6
 
Ch2 Liang
Ch2 LiangCh2 Liang
Ch2 Liang
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
String handling session 5
String handling session 5String handling session 5
String handling session 5
 

Similaire à 2014 whyjavayoasttopic1

Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
TechSearchWeb
 

Similaire à 2014 whyjavayoasttopic1 (20)

WhyJava
WhyJavaWhyJava
WhyJava
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java-Unit-I.ppt
Java-Unit-I.pptJava-Unit-I.ppt
Java-Unit-I.ppt
 
Java
JavaJava
Java
 
Ch2
Ch2Ch2
Ch2
 
Java 2 computer science.pptx
Java 2 computer science.pptxJava 2 computer science.pptx
Java 2 computer science.pptx
 
JAVA INTRODUCTION
JAVA INTRODUCTIONJAVA INTRODUCTION
JAVA INTRODUCTION
 
JAVA INTRODUCTION
JAVA INTRODUCTIONJAVA INTRODUCTION
JAVA INTRODUCTION
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
 
Lecture - 1 introduction to java
Lecture - 1 introduction to javaLecture - 1 introduction to java
Lecture - 1 introduction to java
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programming
 
Java session2
Java session2Java session2
Java session2
 
JAVA for Every one
JAVA for Every oneJAVA for Every one
JAVA for Every one
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
Java lab lecture 1
Java  lab  lecture 1Java  lab  lecture 1
Java lab lecture 1
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 

Plus de Terry Yoast

Plus de Terry Yoast (20)

9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12
 
9781305078444 ppt ch11
9781305078444 ppt ch119781305078444 ppt ch11
9781305078444 ppt ch11
 
9781305078444 ppt ch10
9781305078444 ppt ch109781305078444 ppt ch10
9781305078444 ppt ch10
 
9781305078444 ppt ch09
9781305078444 ppt ch099781305078444 ppt ch09
9781305078444 ppt ch09
 
9781305078444 ppt ch08
9781305078444 ppt ch089781305078444 ppt ch08
9781305078444 ppt ch08
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06
 
9781305078444 ppt ch05
9781305078444 ppt ch059781305078444 ppt ch05
9781305078444 ppt ch05
 
9781305078444 ppt ch04
9781305078444 ppt ch049781305078444 ppt ch04
9781305078444 ppt ch04
 
9781305078444 ppt ch03
9781305078444 ppt ch039781305078444 ppt ch03
9781305078444 ppt ch03
 
9781305078444 ppt ch02
9781305078444 ppt ch029781305078444 ppt ch02
9781305078444 ppt ch02
 
9781305078444 ppt ch01
9781305078444 ppt ch019781305078444 ppt ch01
9781305078444 ppt ch01
 
9781337102087 ppt ch13
9781337102087 ppt ch139781337102087 ppt ch13
9781337102087 ppt ch13
 
9781337102087 ppt ch18
9781337102087 ppt ch189781337102087 ppt ch18
9781337102087 ppt ch18
 
9781337102087 ppt ch17
9781337102087 ppt ch179781337102087 ppt ch17
9781337102087 ppt ch17
 
9781337102087 ppt ch16
9781337102087 ppt ch169781337102087 ppt ch16
9781337102087 ppt ch16
 
9781337102087 ppt ch15
9781337102087 ppt ch159781337102087 ppt ch15
9781337102087 ppt ch15
 
9781337102087 ppt ch14
9781337102087 ppt ch149781337102087 ppt ch14
9781337102087 ppt ch14
 
9781337102087 ppt ch12
9781337102087 ppt ch129781337102087 ppt ch12
9781337102087 ppt ch12
 
9781337102087 ppt ch11
9781337102087 ppt ch119781337102087 ppt ch11
9781337102087 ppt ch11
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 

2014 whyjavayoasttopic1

  • 2. Mrs. Yoast 2 Why Java  Java is simple  No pointers  Automatic memory management  Simpler object-oriented techiques  Streamlined syntax
  • 3. Mrs. Yoast 3 Java Is Object-oriented  Data can be modeled virtually as it exists physically  Objects can be assigned properties (or data)  Objects can be assigned behaviors (or methods)  Java uses inheritance  Java uses polymorphism  Java uses interfaces
  • 4. Mrs. Yoast 4 Java is Distributed  An application can be broken up into multiple programs  Each program can run on a different computer than the other pieces  Each piece can talk to the others – making a single “distributed” application
  • 5. Mrs. Yoast 5 Distributed Programs Sample Computer 1 Program 1 Web Server Computer 2 Program 2 IBM PC Computer 3 Program 3 Database Server
  • 6. Mrs. Yoast 6 Java Is Interpreted  C++ Program Source Code (prog.cpp) Executable Program (prog.exe) Executable Program IBM PC Text File Machine Language Compiles On PC
  • 7. Mrs. Yoast 7 Why Won’t This Work? Executable Program UNIX Server X
  • 8. Mrs. Yoast 8 Java Is Interpreted Source Code (prog.cpp) Executable Program (prog.exe) Executable Program IBM PC Text File Compiles On PC Bytecode Java Virtual Machine (Java to IBM PC)
  • 9. Mrs. Yoast 9 So It Can Be Used on Another Platform Executable Program IBM PC Java Virtual Machine (Java to IBM PC) This WILL Work
  • 10. Mrs. Yoast 10 Java is Robust  Java checks for errors early  Java can’t write over memory locations  Java can catch runtime errors and handle them
  • 11. Mrs. Yoast 11 Java IS Secure  Java is designed for networks  Java is secure by design Java is Platform- independent  Java programs run on any platform that has a JVM  Java applets run on most web browsers.
  • 12. Mrs. Yoast 12 Java is Multithreaded  Multithreaded applications allow several processes to execute simultaneously  Several clients can be handled simultaneously
  • 13. Mrs. Yoast 13 Java is Dynamic  If one client is running part of a Java class, and that class is changed, the client will continue to run the original version  Subsequent clients will begin running the new version while the original client continues to run the original class
  • 14. Mrs. Yoast 14 Sample – Hello World //Title: Hello World //Version: 1.0 //Date: Aug. 15th, 2014 //Author: Mrs. Yoast //Description: Hello World Program public class HelloWorld { public static void main (String args[]) { System.out.println(“Hello World.”); }//ends main }//ends HelloWorld