Programming and Problem Solving with Java

(やまだぃちぅ) #1

Knowledge Goals



  • To understand the difference between syntax and semantics

  • To see why it is important to use meaningful identifiers in Java

  • To understand the distinction between built-in types and objects

  • To appreciate the difference between a class in the abstract sense and a class
    as a Java construct

  • To see the difference between objects in general and their use in Java

  • To recognize how the chartype and Stringobjects are related and differ

  • To understand the difference between a named constant and a variable

  • To know how assignment of an object differs from assignment of a
    standard type

  • To understand what happens when a method is invoked

  • To understand how a Java application is composed of a class with one or
    more methods

  • To appreciate the differences between void and value-returning methods


Skill Goals


To be able to:


  • Read and understand the formal syntax rules governing Java programs

  • Create and recognize legal Java identifiers

  • Declare fields of type charand String

  • Assign values to variables

  • Construct string expressions

  • Declare a class

  • Write a method declaration and invocation

  • Invoke a method

  • Use a constructor to instantiate an object

  • Use comments to clarify your programs

  • Write simple input and output statements using the Systemclass

  • Determine what is displayed by a given code segment


Java Syntax and


Semantics, Classes,


and Objects


1876
Alexander Graham
Bell invents the
telephone, and
obtains one of the
most valuable
patents in history


1882
William S.
Burroughs leaves
his job at a bank to
pursue the
invention of an
accurate and
efficient adding
machine

1889
Herman Hollerith
patents his
Tabulating
Machine, which is
used to expedite the
processing of census
data in 1890

1895
Italian inventor
Guglielmo Marconi
sends and receives
his first radio
signal,
demonstrating the
feasibility of
wireless
communication

1901
The keypunch,
which cuts holes or
notches in a punch
card, emerges in the
form it remains for
the next 50 years

1904
John A. Fleming
builds on Thomas
Edison’s work, and
invents the diode
vacuum tube, which
converts AC signals
to DC signals

T


E


A


M


F


L


Y


Team-Fly®

Free download pdf