Posts Tagged ‘certification’

Fun with Java's syntax !

octobre 23, 2009 Laisser un commentaire

Have you ever prepared a certification ?

Well, for me, it’s the first time, and it proves a very nice occasion to learn stuff you should never do and hopefully will never meet in real code. Still, it’s fun like hell 🙂

So, what am I speaking about ?

Well, stuff like these :

class ExtractsFromTheExams
int[] array[]; // such a nice array declaration

String fooArray[] = new String[]
{ "a", "b", }; // yes, this last comma is fine

String bla = new String[]
{ "foo", "bar", }[1]; // seen in some tests...

Object a\u0001; // readable like hell

public class A // some sample class are very clear

public transient String foo;
Bar aBar = new Bar(10);
static Integer nb = 10;

public static void main(final String[] args)
A a1 = new A();
A a2 = a1;
a1.nb = 0;
System.out.println(++a2.nb);// BTW : what to expect from it ? Will
// this class even compile ?

class Bar

public Bar(final int i)
class Huh{
char A = '\u000A' ;// this one for the end. Try compiling it...

Well, don’t understand me wrong, I appreciate working on this certification. Really. The unclear samples are made to make the reader think twice… And I’m pretty sure anyone having tried to figure out these lines above will have read some of them twice. Furthermore, it’s funky only from time to time, it can also be interesting. Overall, this in depth exploration of Java is valuable, even if mostly on corner cases.


Étiquettes : , , ,

Wanted : book/resources on Java certifications !

septembre 12, 2009 3 commentaires

I’m currently looking seriously at some Java certifications. As such, Uwe kindly gave me lots of Java certification books, but they are about Java 1.2 (whaou, prehistory 😉 ) and 1.4.

Since Java 5 introduced quite some new stuff, extra resources/books would be welcome, as such feel free to comment. I’ll as well update this post with my own findings, even if I already have enough to learn with all these funky bit operators and the like… Funny how little I saw them used BTW… « Wondering about the use case am I ! » (yes I played Stars War Lego recently 🙂 )


EDIT : For some mock tests, Javaranch is the way to go, as they provide some lists of mock test sites.
For books, uwe sent me this very usefull link (thanks by the way !): Javabooks timeline. But in the end, I settled for SCJP Sun Certified Programmer for Java 6 Exam 310-065 which I didn’t find in the Javabooks site.

Anyway, I’m eager to get the book, since certification looks like more useful than I previously thought, in terms of Java mastering and understanding. It really helps to go deeper into it.

EDIT – follow up some interesting links for certifications wanna be :
JavaRanch SCJP faq
Java keywords… special mention for true, false and null !
regex quantifiers…
explanations on the String pool

Digging in !
++ (re)

EDIT : this quest is now over. Thanks all 🙂

Étiquettes : , , ,
%d blogueurs aiment cette page :