What are the two important TCP Socket classes?


Socket and ServerSocket.

ServerSocket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in Socket class.



Explore posts in the same categories: EJB Interview Questions, J2EE Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What do you know about networking support in Java ?
  • Java supports "low-level" and "high-level" classes. "Low-level" classes provide support for socket programming: Socket, DatagramSocket, and ServerSocket classes. "High-level" classes...
  • What is SSL?
  • Secure Sockets Layer (SSL) is a socket protocol that encrypts data sent over the network and provides authentication for the...
  • What is Secure Socket Layer (SSL)
  • A technology that allows Web browsers and Web servers to communicate over a secured connection....
  • What is an interface class?
  • Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They...
  • Why aren’t you earning more money at this stage of your career?
  • You like to make money, but other factors are even more important. Example: “Making money is very important to me,...
  • Why do we need wrapper classes ?
  • It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not...
  • What are different types of inner classes?
  • Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and...
  • What are different types of inner classes?
  • Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and...
  • Difference between C structure and C++ structure?
  • C++ places greater emphasis on type checking, compiler can diagnose every diff between C and C++ 1. structures are a way...
  • What is ‘important’ declaration?
  • Important declaration is a declaration with increased weight. Declaration with increased weight will override declarations with normal weight. If both...

    Comment:

    You must be logged in to post a comment.