Advanced Topics in Programming Languages: Java Puzzlers,…

Google Tech Talks
July 23, 2007

ABSTRACT

Java Puzzlers, Episode VI: The Phantom-Reference Menace/Attack of the Clone/Revenge of the Shift.
Josh Bloch and special guest star Bill Pugh present yet another installment in the continuing saga of Java Puzzlers, consisting of eight more programming puzzles for your entertainment and enlightenment. The game show format keeps you on your toes while the puzzles teach you about the subtleties of the Java programming language and its core libraries. Anyone with a working knowledge of the language will be able to understand the puzzles, but even the most seasoned veterans will be challenged. The lessons you take from this session are directly applicable to…

Duration : 1:13:53



6 Responses to “Advanced Topics in Programming Languages: Java Puzzlers,…”

  1. houtm035 Says:

    Very Very …
    Very Very intresting pitfalls!

  2. 1337hax0rnat0r Says:

    Where are the first …
    Where are the first three episodes? someone please post a link or point me the direction

  3. batlin Says:

    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!

  4. batlin Says:

    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.

  5. wolva Says:

    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

  6. LunatecSE Says:

    very interesting …
    very interesting stuff. Great job guys. I would like to see more.

Leave a Reply

Posted on October 8th, 2007 by admin

Filed under Java |

|