Leandro Eschiavi

Greenhorn
+ Follow
since Sep 14, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Leandro Eschiavi

CORRECT EXAMPLE

private void methodA(int num) {
assert (num >=0);
}

WRONG EXAMPLE

private void methodA(int num) {
assert (modifyThings());
}

public boolean modifyThings() {
y = x++;
retunr true;
}
Firstly, in the line 1, you are working at deploy time, and it�s correct, if you work with the idea of postcondition, we are saying that assert could modify something during runtime, and it�s wrong !

Could you understood ?
See this link !

http://www.sun.com/training/savings/retake.xml

See you...
[ September 27, 2006: Message edited by: Barry Gaunt ]
Hi guys...

I would like to practise a little bit more, I made de exercises from K&B book, MasterExam, WhizLabs and my question is :
Is there any other program simulator to download ?

Thanks a lot !!!

Leandro
Hi guys !

I made some mocks like Katy�s book exercises, the Book cd and I really want to know the degree of dificulty of this exercises. They are like the real exam ?

Thanks... :
Ok, I finally saw the diferences !

Thanks a lot !
Look the definitions on page 628, Question A. Can you explain why B, E and G are true ?

Thanks...
The book mentioned that the answers are B, E and G, is it true ?
The definition for the wrong question is strange !!!]

Can you check it ?

Thanks...