Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Marcelo Ribeiro

Greenhorn
+ Follow
since Aug 04, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marcelo Ribeiro

Hello,

We have a print applet that print jobs in batches (for now will not go deeper in details) the point is that this applet prints using the class PrinterJob and on one network and at some printers it prints without any problems on another network users get errors on some printers, I'll talk to printer's support team and I would like to hear from you any suggestion on how to identify what is causing these errors

* network delay
* printer timeout
* security (it would not be the case since some docs are printed correctly)
* check printer'r log

Any other tip on how to troubleshoot?

Thanks in advance
14 years ago
Hello,

I'm thinking about to buy Whizlabs SCJP 5.0 Training, I would like to hear opnion about these mocks exams.

Thanks in advance
ohh....you're right:


i = 42;
42 is not greater than 50.



I'm becoming crazy studying for this....thank you!!!
Hello,

Kathy's book has this exercise:



the output is "everthing" but from my understandig it would be "universe"


x = (boolean expression) ? value to assign if true : value to assign if false



On that question it evaluates the first to false which route the code flow to another condition (i>50)?"universe":"everything"; which is true, so the output would be "universe", could anyone please explain this?

Thanks in advance
Hello,

From Kathy's book page 30:

What about a subclass that tries to inherit a private member of its superclass?
When a member is declared private, a subclass can't inherit it. For the exam, you
need to recognize that a subclass can't see, use, or even think about the private
members of its superclass. You can, however, declare a matching method in the
subclass. But regardless of how it looks, it is not an overriding method!



so at line 8 you're free to add either protected or public modifier.

Thanks
thanks for the explanation, but it is not so clear yet, at these examples:


public void removeMyListener(MyListener m) //correct

public void addXListener(MyListener m) // listener type mismatch



at books's question the option where we have add is:

addSize



if it was

addListenerSize



would it be correctly?

Thank you!
Hello,

Kathy's book page 68 says:


JavaBeans methods must be named using camelCase, and depending on the
method's purpose, must start with set, get, is, add, or remove.



and on the self test it says:


A, C, and E are incorrect because 'add', 'delete' and 'put' are not standard JavaBeans
name prefixes. (Objective 1.4)



could anyone please explain what I lost because, first it says that "add" should be used then says it should not.

Thanks in advance!
Hello,

I appreciate the answers, I'm having a hard time studying for this test, I've being working with java for about 3 years and now I'm being "forced" to get the certification, I always rely on IDE's showing me the error never had to have the rules on mind, I used to have them at google...rs...well, now that I have to pass the exam I'll study to hard, even because my test is schedulled to 15/08.

Keith, I updated my display name.

Thank you!
Hi,

I'm studying by Kathy Sierra's book and I have a doubt regarding hashCode which contract says:

If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.

but on the book's example,I added the System.out..., it shows different, could anyone please explain what I missed?



thank you