Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "" Watch "" New topic

Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
does anyone know what the difference is between URL getExternalForm() and toString() methods of a URL object.
thanks in advnace
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I couldn't make out any difference in the method behavoir or
return value from the URL API Spec..
I am trying out an example and will update if there is a difference. The only difference which the API mentions is that the toString method overrides the toString of the Object class.

- satya

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
It's not a secret anymore!