Yan Digilov

Greenhorn
+ Follow
since Jan 13, 2019
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 Yan Digilov

Sohail, I was not talking about the "Sharpen Your Pencil" section...
1 week ago

praveen kumaar wrote:

Yan Digilov wrote:
Ask yourself:

1.) if not compiled, why really it didn't compile, what's wrong have you done there...


Tell us your views first, then we will see if their are any problems.



Well it definitely does NOT compile because there is a type mismatch.  I see it reported as an error by some readers, but they have not officially listed it in their erratum for the book.

2 weeks ago
Ah, sorry yall, I am talking about the section ABOVE the sharpen your pencil piece.  I mean the one titled "Assignment".  It goes "Double d = x;" and there is an Integer and an int pointing to it...
5 months ago
On page 291 of Head First Java, they discuss autoboxing and specify that references can be assigned to either the wrapped objected or the primitive type.  However, on the picture, they have a double reference defined with Integer and Int types being thrown in.  Is this an error or have I misunderstood the concept?
5 months ago
Awesome.  That makes a lot more sense.  Thanks so much!
6 months ago
Is b1.beeHA considered to be pointing to the honey object or is it just considered to be pointing to another reference, which happens to point to honey?
6 months ago
This is from page 270, showing the answer to the exercise on page 267...
6 months ago
It says there are 12 but I see 13 solid arrows pointing at honey in the answers. I have the following references pointing to object honey.

honeypot

ha[0]
ha[1]
ha[2]
ha[3]

b1.beeHA

ba[0].hunny
ba[1].hunny
ba[2].hunny
ba[3].hunny
ba[4].hunny

r.rh
r.k.kh

Which is incorrect? I am guessing the last one is the one that does not count but the answer explanation says that it still points to the object...
6 months ago