What is the purpose of using URL Encoding in Java?

  • To encrypt URLs for secure communication
  • To ensure special characters are transmitted properly
  • To optimize URL routing for faster navigation
  • To shorten URLs for better performance
URL Encoding in Java is used to ensure that special characters, such as spaces or symbols, are properly transmitted in URLs. It replaces reserved characters with escape sequences to prevent issues in URL handling and parsing. The other options do not accurately describe the purpose of URL Encoding.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *