Rafal Grzybacz

+ Follow
since Aug 19, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rafal Grzybacz

Hi all,

Has anyone had problems scheduling a free retake exam for SCJP 1.5 using the same voucher number and waiting 72 hours after taking the exam? This is the free retake Sun has offered back in September of 2006 and is currently offering the same deal.

I contacted sun but they said, contrary to what it states on the website,I have to wait 4 weeks and I will get a new voucher number. I need to schedule the exam right now and all Sun has recommended is sending an urgent e-mail to who2contact@central.sun.com. I asked for a phone number but they were reluctant in providing one.

Has anyone had simular problems and do you really get a new voucher number by mial after waiting 4 weeks?

Please share your experience and suggestions on how I can get this voucher sooner.

The use of assertion in 1st code is invalid because it is checking the parameter of a public method.

The second code demonstrates a valid/proper way of using assertions. It checks if the reference to a String object is not null.

Postcondition means that the assertion checks the condition of something after it executes.

Hope this helps.

Hi all,

Can someone verify that this() and super() can only be used inside constructors to specify which constructor to call in a situation where our code has several overloading constructors.


Thank you everyone for your explanation to my question.
Interesting, I would expect a compile error: possible loss of precision for the first block of code.

The code compiles when we have:

final short i = 100;
byte b = i;


final int i = 100;
byte b = i;

Could this be because the byte(8 bit), short(16 bit) and int (32 bit) all fall in the range of a 32-bit register and the long primative type has a 64 bit size and therefore loses 32 bits when assigned to a byte or an int?

1. interface Animal {
2. void eat();
3. }
5. // insert code here
7. public class HouseCat extends Feline {
8. public void eat() { }
9. }

And five declarations:

1) abstract class Feline implements Animal { }
2) abstract class Feline implements Animal { void eat(); }
3) abstract class Feline implements Animal { public void eat(); }
4) abstract class Feline implements Animal { public void eat() { } }
5) abstract class Feline implements Animal { abstract public void eat(); }

Which declaration inserted independently at line 5, will compile?

The correct answer is 1,4 and 5. Can someone explain why 1,4 and 5 are correct and 2 and 3 are not? Thanks.