Question Bank
: Advanced Java Programming (9165)
Class
: TYIF / TYCM / TYCO (IF/VI/C)
Chapter No. 02
Networking in Java
Review Questions: 4 Marks Questions 1) 2) 3) 4) 5) 6) 7) 8) 9)
What is proxy server? Explain. Describe DatagramPacket class. Differentiate between TCP and UDP. Describe the internet addressing and the domain naming system. What is InetAddress? Explain the factory methods of InetAddress. Which are the instance methods of InetAddress class? Describe the meaning of each of them. How to create TCP/IP client sockets? Explain with appropriate example. Describe the use of URL class by explaining all of its constructors. Give the use of following methods of URL class with suitable example.
a. getProtocol( ) b. getPort( ) c. getHost( ) d. getFile( ) 10) What is the purpose of using URLConnection class? Illustrate with suitable example. 11) How to create TCP/IP server sockets? What are the advantages of using it? 12) Describe the process of creating datagram server and clients.
Question Bank: Advanced Java Programming (9165), Chapter 02
-1-