Download - Chapter 1
![Page 1: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/1.jpg)
Java Programming, 3eConcepts and Techniques
Chapter 1
Section 56 –
An Introduction to Java
![Page 2: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/2.jpg)
2Chapter 1: An Introduction to Java and Program Design
Chapter Objectives
• Describe characteristics of Java
• Explain the uses of Java and identify types of Java programs
![Page 3: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/3.jpg)
3Chapter 1: An Introduction to Java and Program Design
Introduction
• A program is a step-by-step series of instructions for a computer
• Computer programming is the process of writing these instructions
• Programmers, or developers, design and write programs using a programming language or development tool
• Java is a programming language that provides the structure for efficient and economical programs
![Page 4: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/4.jpg)
4Chapter 1: An Introduction to Java and Program Design
What Is Java?
• High-level language
• Object-oriented– Data and operations are packaged into a
single unit called an object
• Basic syntax derived from C, C++, and Smalltalk– Designed by a team from Sun Microsystems
led by James Gosling in the early 1990’s
![Page 5: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/5.jpg)
5Chapter 1: An Introduction to Java and Program Design
What Is Java?
• Parsimonious– Compatible with older versions
• Robust– Strongly typed and incorruptible data
• Secure– Protection against misuse of code
• Portable– Platform-independent
![Page 6: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/6.jpg)
6Chapter 1: An Introduction to Java and Program Design
Java Program Types
• Console and Windowed applications
• Applets
• Servlets
• Web Services
• JavaBeans
![Page 7: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/7.jpg)
7Chapter 1: An Introduction to Java and Program Design
Console Applications
• Stand-alone programs using a command-line interface
![Page 8: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/8.jpg)
8Chapter 1: An Introduction to Java and Program Design
Windowed Applications
• Stand-alone programs using a graphical user interface (GUI)
![Page 9: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/9.jpg)
9Chapter 1: An Introduction to Java and Program Design
Applets
• Client-side programs executed as part of a displayed Web page
![Page 10: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/10.jpg)
10Chapter 1: An Introduction to Java and Program Design
Servlets
• Server-side programs hosted and run on a Web server
• Used in conjunction with Java Server Pages (JSP) to provide sophisticated server-side logic
• Enable connections to server databases through Java Database Connectivity (JDBC)
![Page 11: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/11.jpg)
11Chapter 1: An Introduction to Java and Program Design
Servlets
![Page 12: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/12.jpg)
12Chapter 1: An Introduction to Java and Program Design
Web Services
• Services receive information requests over the Web and return the requested data
![Page 13: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/13.jpg)
13Chapter 1: An Introduction to Java and Program Design
JavaBeans• Reusable software components
![Page 14: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/14.jpg)
14Chapter 1: An Introduction to Java and Program Design
Summary
• Java is a high-level object oriented programming language– Has Objects, Methods, Functions,
Parameters!– Uses conditional statements, loops, etc
• There are different Java Program Types but the underlying code is all JAVA and very similar.
![Page 15: Chapter 1](https://reader036.vdocument.in/reader036/viewer/2022070400/56812cf2550346895d91bf39/html5/thumbnails/15.jpg)
15Chapter 1: An Introduction to Java and Program Design
Rest of Today
• Complete your Alice Web Page and show me the results.