Friday, February 10, 2006

Still running on 50 %

Mock test. These from Whizlab are tough one. I don't know why, but I can pass any test, but this. The questeions are difficult and what's more - they're artificialy difficult. Most of the questions are poorly formated so even to recognize code take a lot of time. That's why I hate them and why I hope that the real question will be better to understand and if they will even harder then the hardnest will be managed by clearer approach - no fog over the code. For example take a look at this snippet:


interface Counter {
private int countToFive ()
{
int a;
for (a = 1;a<5;a++)
System.out.printf("counting" + a);
}

}
class Beta
{
public static void main (String ... args)
Counter c = new Counter () {
public countToFive () {
for (int a = 0;a<6;a++)
System.out.printf("counting" + a);
}
}; c.countToFive();
}}
What a mess !

No comments: