Victoria University of Technology

Object Oriented Programming 2


Annoucement
Date Topic
3/9/2002 You can retrieve the supplementary notes on networking by clicking here.

Course Topics    

  • Inheritance
  •    
  • Building GUIs
  •    
  • Advanced Graphical User Interface
  •    
  • Threads
  •    
  • Stream I/O and Files
  •    
  • Sockets and Networking
  • Syllabus and Teaching Plan

    Textbooks    

  • Java, Java, Java - Object Oriented Problem Solving
        by Ralph. Morelli
        Prentice Hall, 2000
  •    
  • Java Software Solutions - Foundations of Program Design
        Second Edition
        by John Lewis and William Loftus
        Addison Wesley, 2001
  •    
  • Java How to Program
        Third Edition
        by Deital & Deital
        Prentice Hall, 1999
  •    
  • Introduction to Java Programming
        Third Edition
        by Daniel Liang
        Que, 2001
  • Examination    

  • Sample Paper    
  • Solution Q1    
  • Solution Q2    
  • Solution Q3a    
  • Solution Q3b    
  • Solution Q5    
  • Solution Q6

    Lecture Slides
  • Inheritance (Lewis)
  • Exception and I/O Streams (Lewis)
  • Graphical User Interface (Lewis)
  • Input and Output (Liang)
  • Multithreading (Liang)
  • Networking (Liang)
  • Example Listings in PDF format
  • Inheritance (Lewis)
  • Exception and I/O Streams (Lewis)
  • Graphical User Interface (Lewis)
  • Input and Output (Liang)
  • Multithreading (Liang)
  • Networking (Liang)
  • Example Program Source Files and Related Files
    Chapter Program Source
    Inheritance Words Book Dictionary Words2 Book2 Dictionary2 Messages Thought Academia GradStudent Firm Staff StaffMember Volunteer Employee Executive Hourly FoodAnalysis FoodItem Pizza OffCenter Fahrenheit Doodle DoodleCanvas
    Exception Zero ProductCodes Propagation ExceptionScope CreatingExceptions OutofRangeException Inventory InventoryItem TestData
    GUI GenericWindowListener FrameDemo ShowFrames LabelDemo Quotes JukeBox Play GIF Stop GIF WesternBeat WAV Classical Melogy WAV Jeopardy Theme AU New Age Rythm WAV Eighties Jam WAV Alfred Hitchcock's Theme WAV
    I/O FileUsingByteStream TestDataStreams TestPrintWriters viewFile ParsingTextFile TestRandomAccessFile FileDialogDemo Student StudentPanel
    Multithreading TestThreads MyFramWithExitHandling StillClock Clock ClockGroup TestThreadPriority Account NegativeAmountException InsufficientFundException TestTransferWithoutSync
    Networking Server Client MultiThreadsServer RegServer RegClient RegClient (HTML) ViewingWebPages ViewingWebPages (HTML) RetrievingRemoteFile RetrievingRemoteFile (HTML)

    Keyboard Class
    The class is developed by John Lewis.
    Most of the examples are required the support of the Keyboard class.
       

  • Source
  •    
  • ByteCode
  • Installation Suggestion    

      Create a directory for storing your developed java source such as c:\oop2.
      Create another directory named oop2 under your work directory such as c:\oop2\cs1.
      Copy the Keyboard.class file in this cs1 direcory.
      In this case, a file named c:\oop2\cs1\Keyboard.class should be established.
      Go to your work directory and build up your files such as Average.java that requires the Keyboard class. You can compile your developed program using the command.
            c:\oop1>java Average.java

    Website administered by: S.H. Tong.
    Last Modified: 24 June 2002