Sockets interview questions

Sockets interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 10

1. The flush () method of Print Stream class flushes any un cleared buffers in memory

Correct Answer is : TRUE

2. Which methods are commonly used in Server Socket class?

Correct Answer is : Public Socket accept ()

3. The URL Connection class can be used to read and write data to the specified resource referred by the URL

Correct Answer is : TRUE

4. Datagram is basically an information but there is no guarantee of its content, arrival or arrival time.

Correct Answer is : TRUE

5. Which constructor of Datagram Socket class is used to create a datagram socket and binds it with the given Port Number?

Correct Answer is : Datagram Socket(int port, Int Address address)

6. The client in socket programming must know which information?

Correct Answer is : Both IP address of Server & Port number

7. TCP, FTP, Telnet, SMTP, POP etc. are examples of?

Correct Answer is : Protocol

8. What does the java.net.InetAddress class represent?

Correct Answer is : IP Address

9. Which classes are used for connection-less socket programming?

Correct Answer is : Both Datagram Socket & Datagram Packet

10. In Int Address class which method returns the host name of the IP Address?

Correct Answer is : Public String get Hostname()

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon