• The first line in the second example isn't legal without an explicit conversion or cast.

    I'm pretty sure Raj meant to write...

    string myID = "1001";

    instead of...

    int myID = "1001"; // this is an obvious compiler error