Hi guys,
thank you all! I have passed the SCJP5.0 today with 87%. Worst result was on API (70%), I have really bad memory. :-)
To contribute something back to the community, here is my "cheat sheet":
top level classes can only be "default", public, static or final wait() and notify*() only in synchronized code private constructor can not be called from constructor of subclass. there is automatic narrowing conversion of literals and final variables for byte, short, char, int (if fits to new range) array creation: given size, or initializer, not both! non-public main() compiles, but doesn't run. implicit method modifiers in interfaces: public abstract implicit field modifiers in interfaces: public static final if the subclass overrides a method, then the parent constructor calls the overriding one. member variables are resolved at compile time (int)-2.9 == -2 there can be method with the same name as the constructor. It even can return void. "byte" += "int" compiles and works (possibly loose prec.) Arrays of generic type: only unbounded wildcards. private is private to the class, not to the object final field must be initialized in initializer, constructor, or at the place of declaration static final field must be initialized in static initializer or at the palce of declaration static fields/methods/classes can be declared only in static or top-level classes. Set, List and Map strenghten the requirements on equals and hashCode contracts It is possible to declare variables of abstract types. Externalizable class must have no-args constructor default serialization writes non-static and non-transient fields. It is not possible to convert or cast arrays of primitives.
Thanks again!
Jan
thank you all! I have passed the SCJP5.0 today with 87%. Worst result was on API (70%), I have really bad memory. :-)
To contribute something back to the community, here is my "cheat sheet":
Thanks again!
Jan