Advanced Topics in Programming Languages: Java Puzzlers,…
6 Responses to “Advanced Topics in Programming Languages: Java Puzzlers,…”Leave a ReplyPosted on October 8th, 2007 by admin Filed under Java | 6 Comments » |
|
Advanced Topics in Programming Languages: Java Puzzlers,…
6 Responses to “Advanced Topics in Programming Languages: Java Puzzlers,…”Leave a ReplyPosted on October 8th, 2007 by admin Filed under Java | 6 Comments » |
|
Very Very …
Very Very intresting pitfalls!
Where are the first …
Where are the first three episodes? someone please post a link or point me the direction
It seems silly that …
It seems silly that a Short of value 1 is not equal to an Integer of type 1.
I think this is pretty unintuitive feature – maybe they should have said ‘screw backward compatibility’ to avoid it.
Nice vid though!
The second one is …
The second one is crazy as well – does the name resolution happen when URLs are constructed/specified, or truly during the equals() method? If so, that’s quite the WTF!, since equals is called very often when dealing with sets… this implies that adding a URL to a set containing 1,000,000 URLs already will cause all of them resolved which makes no sense.
distance=speed * …
distance=speed * time
for example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. write a program that asks for the speed ofa vehicle(in miles per hour) and the number of hours it has traveled. it should use a loop to display the distance a vehicle is traveling at 40 mph for a 3 hour time period. it should display a report similar to the one that follows:
hour – 1 distance – 40
hour- 2 distance- 80
hour- 3 distance – 120
very interesting …
very interesting stuff. Great job guys. I would like to see more.