is'nt there a mistake on page 313 of K&B SCJP5? Specifically the program with fragments. Isnt the output 41? or i'm missing something?
Life is like a day. If the day is of no use, neither a month or a year.
Loveen Jain
Ranch Hand
Joined: Jan 24, 2004
Posts: 35
posted
0
I think you are talking about this code right?
Answer is certainly 4 2.
Reason : a) First print statement : 14 % 5 = 4 ( is the remainder after divison of 14 by 5) b) Second print statement : 7 % 5 = 2 ( is the remainder after divison of 7 by 5).
I hope its clear!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.