Query about method getByName()?

Discussion in 'Java' started by Jack Dowson, May 16, 2007.

  1. Jack Dowson

    Jack Dowson Guest

    Hello Everybody
    Will etByName("localhost") and getByName("127.0.0.1") return the same
    InetAddress instance.

    Thank you.
    Dowson.
     
    Jack Dowson, May 16, 2007
    #1
    1. Advertising

  2. Jack Dowson

    Eric Sosman Guest

    Jack Dowson wrote:
    > Hello Everybody
    > Will etByName("localhost") and getByName("127.0.0.1") return the same
    > InetAddress instance.


    No. (Or "not necessarily.")

    You could have tried it for yourself ...

    --
    Eric Sosman
    lid
     
    Eric Sosman, May 16, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Learner
    Replies:
    1
    Views:
    1,005
    Marina Levit [MVP]
    Jan 30, 2006
  2. FB
    Replies:
    3
    Views:
    372
  3. -
    Replies:
    2
    Views:
    631
  4. saggar
    Replies:
    2
    Views:
    1,370
    lewbloch
    Jun 17, 2011
  5. Kyung won Cheon
    Replies:
    0
    Views:
    221
    Kyung won Cheon
    Nov 21, 2008
Loading...

Share This Page