SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Destacado

Gis tutorial2013
Gis tutorial2013Gis tutorial2013
Gis tutorial2013
Terry Yoast
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Más de Terry Yoast

Más 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
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
 

Último (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
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
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

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