description

This is a remedial Java class, covering the fundamentals of Java. The course is designed for students with some programming experience, but if you have none and are motivated you will do fine.

The class is designed by Anastasia Bezerianos and is organized in six 3h sessions. You are welcome to only go over the sessions with topics you are not familiar with.


pratical info

To follow the class you need to have Java and Eclipse installed in your machine. If you are only interested in basic Java practice need to do steps 1 and 2 from the instructions here (the other steps are for JavaFX and are needed for the Intro to Programming of Interactive Systems).

classes

Java basics

Brief introduction to programming concepts.

Introduction to Java, basic types and syntax.

Here are the Class Slides and the Execrises we will do. You can also find the Code for class examples, but try on your own before you look at it.

Java Basics and OOP

Introduction to object oriented programming, the principle of abstraction and encaptulation, the notion of Object and Class.

Here are the Class Slides on OOP and the Execrises we will do. You can also find the Code for class examples, but try on your own before you look at it.

Inheritance

Class inheritance and polymorphism are the main topic, but we will also discuss briefly packages and more object collections.

Here are the Class Slides and the Execrises we will do. You can also find the Code for class examples, but try on your own before you look at it.

Exceptions and Exercises

Exceptions are the main topic, but we will also discuss briefly Jar files.

We briefly introduced Exceptions, more details in the slides.

We'll use the same Class Slides as in previous session, and the same Execrises. We can now do all parts (including red ones).

I/O

We'll discuss standard input/output and file reading/writing.

We briefly introduced reading from files, more details in the slides.

Class Slides and the Execrises we will do.

Solutions

Solutions for all class examples and all exercises can be found here (remember there are many ways of solving a problem).

Java and other Resources

If you want to go further in Java, or revisit some concepts seen in class these are good resouces:

This wikiversity course discusses concepts of programming more generally, and has examples in Java

There is also a good book on Intro to programming with Java available online (a bit old for the UI stuff but good for Java basics)

Oracle Java tutorials for many Java concepts, some advanced