5 years ago in Java Network Programming

What is the output of this program?

import java.net.*;
class networking {
public static void main(String[] args) throws UnknownHostException {
InetAddress obj1 = InetAddress.getByName("cisco.com");

[A] cisco
[B] cisco.com
[C] www.cisco.com
[D] None of the mentioned
Next Question

Overall Stats

Attempted 126
Correct 38
Incorrect 23
Viewed 65


Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

Vaibhav Bisht from Dehradun, India is saying None of the mentioned is correct answer

zainb ryad
zainb ryad - 2 months ago

zainb ryad from Jenin, Palestine is saying cisco.com is correct answer

Mohiddin Mohi
Mohiddin Mohi - 3 months ago

Mohiddin Mohi from Rajahmundry, India is saying www.cisco.com is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying www.cisco.com is correct answer

Michael Nguyễn
Michael Nguyễn - 6 months ago

Michael Nguyễn from Hanoi, Vietnam is saying cisco.com is correct answer

Related Questions

Which of these method is used to find a URL from the cache of httpd?

  • [A] findfromCache()
  • [B] findFromCache()
  • [C] serveFromCache()
  • [D] getFromCache()

Which of these methods of httpd class is used to read data from the stream?

  • [A] getDta()
  • [B] GetResponse()
  • [C] getStream()
  • [D] getRawRequest()