Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.net.url

 
Paul Wetzel
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does anyone know what the difference is between URL getExternalForm() and toString() methods of a URL object.
thanks in advnace
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hmmmm....
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.

Regds.
- satya
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic