aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Networking and AWT
  • In Java network programming, which of the following metho...
Multiple choice

In Java network programming, which of the following methods is/are defined in “InetAddress” class?

  1. getHostName();

  2. getHostAddress();

  3. getHostType();

  4. Both (1) and (3)

  5. Both (1) and (2)

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is a correct choice.

Keep practicing — related questions

  • Which of the following methods of InetAddress class returns a string that represents the host address assoc...
  • Which class is used to create and control a connection to a platform and firewall specific location in netw...
  • Which of the following methods of ServletRequest class is used to return the string equivalent of the clien...
  • Which class is used to create an object from a full web address in networking in Java?
  • Which of the following methods of Socket class in java returns the local port to which Socket object is con...
  • Which of the following methods is/are defined in the File class in Java?
  • Which of the following methods is/are defined in the File class in Java?
  • Which of the following methods is/are defined in the File class in Java?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy