Java Specialists' Java Training Europehome of the java specialists' newsletter
Java Quiz

Nope. The code does run.

The correct answer is: Conference [Herman, Bobby, Robert]. So far, only 1624/9303 (17%) got that right!

The compiler does not find a remove(int) method on the Collection interface, so it autoboxes the int to an Integer. Generics would also not have helped, since the remove method takes an Object as a parameter.

Sign up now for our Java 5 Tiger course, where you will see lots of other tricks like this and how to avoid this bug in your code.

Prerequisites for the Tutorial

You should be very comfortable with Java 1.4 code and have a good understanding of your IDE. Please bring along a laptop with JDK 1.5 preinstalled.

"The course is presented in a very good way. There are
lots of exercises, the teacher knows what he is talking
about and is ready to answer questions."

- Wolfgang R. Alcatel, Austria

Tutorial Outline - Migration from Java 1.3/1.4 to Java 5.

Chapters and Descriptions

  1. Introduction to Tiger - History of Java, most significant changes, overview of tutorial
  2. Annotations - @Override, @Deprecated, @SuppressWarnings, Writing your own, Extracting with reflection
  3. Generics - Using generics, java.lang.Comparable, wildcards, extending generic classes, for/in loop, erasure and other complaints
  4. Autoboxing Boxing, when to use, when to avoid, performance considerations
  5. Enum - Defining simple enums, complex enums, adding methods, generated enum code, switching on enums
  6. Static Imports - How to use, when to avoid, combining with Enum.
  7. New collections - Queue, BlockingQueue and implementations, writing safer concurrent code, TimeUnit
  8. Variable Arguments - Examples in the JDK, how it works, generated code
  9. Bonus Features - Bit manipulation in Tiger, central exception handling, management beans for deadlock detection and memory monitoring.

Contact up now for a Java 5 course.

Java Master
Java Foundation
Java 5 Tiger
Design Patterns
In-House Courses
What is the Java Specialists Club?

© 2010 Heinz Kabutz - All Rights Reserved Sitemap seo web design Catch22 Marketing
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. JavaSpecialists.eu is not connected to Oracle, Inc. and is not sponsored by Oracle, Inc.