Java 5 Tutorial in Norway, 12th Sep 06
| Language |
|
English |
| Presenter |
|
Dr.
Heinz Kabutz
|
| Level |
|
medium-advanced |
| Date/Time |
|
Sep 12, 09.00 - 17.00 |
| Price |
|
NOK 6000 (€ 756) |
| Book Now |
|
Click Here |
Brought to you as a first at JavaZone 2006, is a special one-day
tutorial to take you from Java 1.3/1.4 to Java 5. Essential
for software developers who would like to get their hands dirty
trying out the new features.
During the tutorial you will have the opportunity to try out
these new concepts on your own laptop under the coaching of
Dr Heinz Kabutz, author of The
Java™ Specialists' Newsletter.
"Immediately shows how to use the new Tiger features
efficiently and how to avoid drawbacks & pitfalls."
Gerhard R. - Alcatel Austria
Is this Tutorial for You?
Do you know what will happen when you try to compile/run this
code in Java 5?
import java.util.*;
public class Conference {
private Collection delegates = new ArrayList();
public void add(String... names) {
Collections.addAll(delegates, names);
}
public void removeFirst() {
delegates.remove(0);
}
public String toString() {
return "Conference " + delegates;
}
public static void main(String[] args) {
Conference sun_tech_days = new Conference();
sun_tech_days.add("Herman", "Bobby", "Robert");
sun_tech_days.removeFirst();
System.out.println(sun_tech_days);
}
}
- I give up.
- Code fails to compile.
- Runtime exception.
- Output: Conference [Bobby, Robert]
- Output: Conference [[Ljava.lang.String;@86498]
- Output: Conference [Herman, Bobby, Robert]
- Output: Conference []
|