Java Sockets – You Just Got to Plug Them in
I realised that programming in Java is quite a fun only after doing it myself. You will be amazed to know that it’s like putting different pieces of puzzle together. You put them relatively in an integrated and coherent manner. The Beauty of it is, that most of the times you dont have to create these pieces yourself. You just customize them according to your need after you get them from an already defined java class or package. It was about programming, now lets talk sumthing about sockets.
Socket is used to establish a point-to-point, bidirectional connection between two entities in a network. Just like a real world socket, it is used to plugin a connection from another source. The connection can be incoming or outgoing or both. Similar is the case at the other end. To understand these sockets properly, you need to learn a bit about Operating System and its Networking Protocols. Sockets are basically of three types: 1)UNIX Domain Sockets; 2) Internet Domain Sockets; 3) NS domain Sockets.
Java being platform independent Programming language, supports only Internet Domain Sockets as only they are platform independent out of three. These internet domain sockets are distinguished on the basis of Internet protocol they work on… Read more…
Java is designed to be simple and very easy to learn. It contains so many useful features. So for that reason it is not so popular today. Clearly a decision was made to hide some problems rather than to give people the means to solve them. Although Java is classed as an object-orientated programming language and one of the easier programming languages to start learning, Javaâs primitive types are not objects and so consequently it is not a pure object-orientated language.


Recent Comments