Welcome to Java as a second language - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Welcome to Java as a second language

Description:

Assumes familiarity with object-oriented programming techniques ... just-in-time compilation binds classes in advance with spare cycles ... – PowerPoint PPT presentation

Number of Views:34
Avg rating:3.0/5.0
Slides: 15
Provided by: patm7
Category:

less

Transcript and Presenter's Notes

Title: Welcome to Java as a second language


1
Welcome to Java as a second language!
  • Assumes 2Qs familiarity with another language
    like C or Ada
  • Assumes familiarity with object-oriented
    programming techniques
  • Assumes familiarity with basic data structures
    (list, stack, queue, trees) and how to implement
    them

2
Syllabus
  • Text Deitel, and WWW
  • Prerequisites 2Q of C or Ada
  • This is a programming class!

3
Syllabus
  • Grading Projects 70, 2 exams 15 each
  • Limited collaboration design and informal
    algorithms only
  • Late assignments unacceptable.
  • Due at beginning of class.
  • Web page
  • http//www.cs.nps.navy.mil/people/faculty/mackp/37
    73

4
Scheduling Issues
  • Course Topics
  • Java Basics
  • User Interfaces and Graphics
  • Streams and Files
  • Networking
  • Multi-Threading
  • Optional Advanced Topics

5
Scheduling Issues
  • This week
  • Java Compilation
  • Introduction to Java Syntax

6
Scheduling Issues
  • Assignment 0 out Tuesday, due Thursday
  • Assignment 1 out Th. 6 Apr, due 13 Apr
  • First exam April 27
  • Second exam TBA
  • Around week 8 of class

7
Scheduling Issues
  • No final!
  • last programming assignment due Finals Week

8
What is Java? History of Java
  • Development at Sun Microsystems in 1990
  • Wanted a new language for control of consumer
    electronic devices
  • Existing languages were too complex to write many
    compilers for
  • Usually done with custom hardware

9
What is Java? History of Java
  • Designed language for any kind of computer chip
    by making it easy to translate
  • Oak was first used in a household-of-the-future
    controller
  • name changed to Java in a coffee-shop, after
    hearing that Oak was taken

10
What is Java? History of Java
  • simple, encapsulated Java was perfect for
    embedding in web pages
  • Formally announced by Sun in May 1995
  • supported by Netscape Navigator 2.0
  • Java hype sparked by tremendous growth of the web

11
What is Java? Why use it?
  • Completely Object-Oriented
  • Automatic Garbage Collection
  • Never call free() or delete() again!
  • Created for GUI and networking
  • Rich class libraries available for event-driven
    graphical interaction
  • Java understands URLs directly

12
What is Java? Why use it?
  • Architecture-Independent, Portable
  • Built-in security model
  • Robust memory management
  • Native support for concurrent programming
  • Industry Hype Java Jobs

13
Why Not Java?
  • Interpreted translated slower
  • C approximately 8 times faster than Java for
    arithmetic
  • Some speed-up is possible
  • just-in-time compilation binds classes in advance
    with spare cycles
  • Portability is not an essential part of Java!

14
Why Not Java?
  • No multiple inheritance (so?)
  • No pointer arithmetic (so?)
  • No templates (makes compiler design difficult)
Write a Comment
User Comments (0)
About PowerShow.com