GNU   davin.50webs.com/research
Bringing to you notes for the ages

       Main Menu          Research Projects         Photo Album            Curriculum Vitae      The Greatest Artists
    Email Address       Computer Games          Web Design          Java Training Wheels      The Fly (A Story)   
  Political Activism   Scruff the Cat       My Life Story          Smoking Cessation          Other Links      
Debugging Macros     String Class I     Linked List System I Java for C Programmers Naming Convention
    String Class II         How I use m4              Strings III                 Symmetrical I/O             Linked Lists II     
Run-Time Type Info   Virtual Methods      An Array System        Science & Religion            Submodes       
  Nested Packages      Memory Leaks    Garbage Collection      Internet & Poverty      What is Knowledge?
Limits of Evolution   Emacs Additions      Function Plotter           Romantic Love        The Next Big Thing
    Science Fiction     Faster Compilation Theory of Morality         Elisp Scoping               Elisp Advice      
  S.O.G.M. Pattern       Safe Properties         School Bullying          Charisma Control          Life and Death    
     Splitting Java          Multiple Ctors       Religious Beliefs         Conversation 1           Conversation 2    
   J.T.W. Language    Emacs Additions II      Build Counter             Relation Plotter          Lisp++ Language  
  Memory Leaks II   Super Constructors CRUD Implementation Order a Website Form There Is An Afterlife
More Occam's Razor C to Java Translator Theory of Morality II


Tutorial series: Java for C programmers Free Stuff

The following series of 16 exercises was written by Davin Pearson under the supervision of Neville Churcher. The purpose of these exercises is to teach the Java language to students who have a background in the C language and UML constructs. Exercises 7 and 10 were adapted from material originally written by, respectively, Neville Churcher and Andy Cockburn of the University of Canterbury Department of Computer Science. All of these tutorial materials fall under the GNU Free Documentation License.


A set of fully worked answers to the exercises is available here.


These exercises are saved the P.D.F. format and require Adobe's Acrobat Reader to view the files. If you don't already have the plugin, click on the icon on the right to visit Adobe’s Website to get it.

Get Acrobat

Exercises

1. Java for C programmers.
q1.pdf
2. Methods, properties and constructors
q2.pdf and PersonTest.java
3. Parameters and return values
q3.pdf and CitizenTest.java
4. References in more detail
q4.pdf and DogTest.java
5. Public versus private
q5.pdf, SavingsAccount.html and SavingsAccountManager.java
6. Static versus non-static
q6.pdf, CartoonTest.java and CartoonCharacter.java
7. Conditional constructs
q7.pdf, Iffy.java
8. Looping constructs
q8.pdf, LoopTest.java
9. Arrays
q9.pdf, ArrayTest.java, ArrayPrint.html, ArrayPrint.class and ArrayTest2.java
10. Exceptions
q10.pdf, Student.java and BadRandom.class
11. Inheritance
q11.pdf, AnimalTest.java and StarWars.java
12. Run-time type information
q12.pdf and ShapeTest.java
13. Polymorphism
q13.pdf
14. Interfaces
q14.pdf and InterTest.java
15. Introduction to Packages
q15.pdf, A.java, B.java, C.java and D.java.
16. Advanced Packages
q16.pdf, X.java, Test.java, List.java, Node.java, IsNodeObject.java, IntegrityException.java and ListTest.java
Back to Research Projects
This page has the following hit count:
| Main Menu | Research Projects | Photo Album | Curriculum Vitae | The Greatest Artists |
| Email Address | Computer Games | Web Design | Java Training Wheels | The Fly (A Story) |
| Political Activism | Scruff the Cat | My Life Story | Smoking Cessation | Other Links |
| Debugging Macros | String Class I | Linked List System I | Java for C Programmers | Naming Convention |
| String Class II | How I use m4 | Strings III | Symmetrical I/O | Linked Lists II |
| Run-Time Type Info | Virtual Methods | An Array System | Science & Religion | Submodes |
| Nested Packages | Memory Leaks | Garbage Collection | Internet & Poverty | What is Knowledge? |
| Limits of Evolution | Emacs Additions | Function Plotter | Romantic Love | The Next Big Thing |
| Science Fiction | Faster Compilation | Theory of Morality | Elisp Scoping | Elisp Advice |
| S.O.G.M. Pattern | Safe Properties | School Bullying | Charisma Control | Life and Death |
| Splitting Java | Multiple Ctors | Religious Beliefs | Conversation 1 | Conversation 2 |
| J.T.W. Language | Emacs Additions II | Build Counter | Relation Plotter | Lisp++ Language |
| Memory Leaks II | Super Constructors | CRUD Implementation | Order a Website Form | There Is An Afterlife |
| More Occam's Razor | C to Java Translator | Theory of Morality II
Last modified: Sat Nov 4 19:24:19 NZDT 2017
Best viewed at 800x600 or above resolution.
© Copyright 1999-2017 Davin Pearson.
Please report any broken links to