Java and C#

 

Welcome to the homepage of the Java and C# PhD Course at Aalborg University.

The course will take place on Thursday the 9th and Friday the 10th of June 2005 at Fredrik Bajers Vej 7E room E3-109

The course Lecturers are Lone Leth Thomsen and Bent Thomsen.

 

Note: This page is still under construction

Introduction

Whether you develop programs for enterprise solutions, high performance computing, digital signal processing, games or mobile applications you are likely to develop them in either Java or C# in the future – in fact you are likely to develop programs in both languages as a Gartner Group survey shows that 30% of enterprise applications will have code in both languages.

This course will introduce the two languages and their associated platforms, the JVM and .Net, with variants for desktop, enterprise, high performance and mobile computing.

It will introduce programming tools and techniques and discuss performance studies.

The course will in particular go into detail about the newest versions of the two languages: Java 1.5 and C# 2.0. Although the two languages are becoming more and more similar they differ in important and subtle ways, especially in their use and implementation of generics and program property annotations.

The course will assume some programming experience in an object oriented language like C++, Java or C#. Apart from that the course will not require you to prepare much (except installing the recommended software if you are bringing your own computer).

However, the course will require a fair amount of self-study, following the recommended on-line tutorials, reading the recommended literature and completing the exercises. The lectures and exercises on course days, 9. and 10. of June, will give you an introduction to the material and correspond approximately to 1 ECTS out of the credited 2.5 ECTS.

Schedule

Day 1 Thursday 9th of June 2005

Day 2 Friday 10th of June 2005

9.00-9.45 Session 1: Introduction and Overview

9.00-9.45 Session 5

9.45-10.00 Break

9.45-10.00 Break

10.00-10.45 Session 2

10.00-10.45 Session 6

10.45-11.00 Break

10.45-11.00 Break

11.00-12.00 Exercises 1

11.00-12.00 Exercises 2

12.00-13.00 Lunch

12.00-13.00 Lunch

13.00-13.45 Session 3

13.00-14.00 Session 7

13.45-14.00 Break

13.45-14.00 Break

14.00-15.00 Session 4

14.00-15.00 Session 8: Beyond Java and C#

 

Slides from the course

JavaCSharSlides.zip note 6MB zip file

VS2005Slides.zip note 12 MB zip file

Recommended Literature

P. Sestoft and Henrik I. Hansen, C# Precisely, The MIT Press October 2004. ISBN 0-262-69317-8

P. Sestoft, Java Precisely, The MIT Press June 2002. ISBN 0-262-69276-7.

(Note that there will be a new version of this book out at some point:

P. Sestoft, Java Precisely, Second Edition, The MIT Press July 2005. ISBN 0-262-69325-9.

However, the publishing date seems to be slipping, current forecast is August)

Recommended On-Line Tutorials

C# Tutorial - Index Page

Taming Tiger, Part 1   Taming Tiger, Part 2    Taming Tiger, Part 3

Additional Web References

Java Precisely - concise Java quick reference

Peter Sestoft's note on Java Performance

Overview of Enhancements to the Java Programming Language

http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

The Java Tutorial

What's New and What's Old? The History of the Tutorial

The J2EE(TM) 1.4 Tutorial

Using NetBeans IDE 4.1

C# Precisely - concise C# quick reference

C# Station: Introduction to the C# Tutorial

Groovy - Home

The AspectJ project at Eclipse.org

C Omega

Resources

You can freely download and install the following tools:

Download J2SE Development Kit 5.0 Update 3 with NetBeans 4.1 Bundle

Visual Studio 2005 Express Editions: Visual C# Express Edition Beta 2

You can request a full version of Visual Studio 2005 Beta 2 if you live in Denmark on:

The Visual Studio 2005 Beta Experience

Outside Denmark you need to be a member of MSDN, see

Visual Studio 2005 Beta Home

Exercises

For the exercises you may use your own computer or one of the 11 PC's in room E1-110.

The PC room has been reserved for the course participants on June 9th and 10th.

All PCs in room E1-110 has NetBean 4.1 with JDK 5.0 and Visual Studio 2005 beta 2 installed.

A guest account has been set up and you will get the information during the course.

Exercise session 1

  1. Read the Taming Tiger tutorial and test your knowledge using the Quiz: Java 1.5 Generics
  2. Read the NetBeans IDE 4.1 Quick Start Guide
  3. Try out the program examples in the Taming Tiger tutorial in NetBeans

Exercise session 2

  1. Follow the instructions on Visual Studio 2005 Express Editions: Creating a Console Application with Visual C# Express
  2. Follow the instructions on Visual Studio 2005 Express Editions: Creating a Windows Application with Visual C# Express
  3. Try out the Visual C# Samples
  4. In this note you can find a set of C# exercises developed by Peter Sestoft, do as many as you can.

DAT8 exam

Those of you taking this course as a DAT8 course will have an exam on June 13th, see Exam plan for Java and C# course.

The exam will be oral and the exam will be a discussion about one or more of the following topics:

  1. New features in Java 1.5
  2. C# structs vs. classes
  3. Virtual methods in Java and C#
  4. Generics in Java and C#