What is the purpose of the java.net package?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the purpose of the java.net package?
Rating:
The java.net package contains classes that provide support for networking. Some of the classes of this package are listed below:
- Socket
- Authenticator
- ServerSocket
- URL
Using the Socket class, users can communicate with any server on the Internet or implement their own Internet server. A number of classes are provided in the java.net package to make it convenient to use Universal Resource Locators (URLs) to retrieve data on the Internet.
Rating:
Was this information helpful?
Other articles
- What is length field?
- What is the Connection interface?
- What is a deployment descriptor?
- What is CLDC in J2ME?
- What is a servlet?