Java Network Programming Tutorial Roseindia Servlet

Learn Java Programming for beginnersThis tutorial provides step-by-step guide for beginners in Java, these tutorials will help beginner in learning Java Programming from beginning. This tutorial provides step-by-step guide for beginners in Java, these tutorials will help beginner in learning Java Programming from beginning.Java programming tutorials for beginners for learning Core Java,Advanced Java, JSP Servlets OnlineThis tutorial is complete introduction to the Java programming language forbeginners which teaches you Java programming language. Java programming languageis very popular language and its on high demand in the Job market.Java programming language is platform independent language, which means youcan run it on all the platforms like Windows, Linux, Unix, Mac, Centos etc.Java needs the Java Virtual Machine on host platform for running the code.What type of applications can be developed using Java?Java is very vast and it can be used to develop several types ofapplications. All the applications can be grouped into:Native Applications: These runs on the operating systemdirectly and examples are application that run on user's desktop, laptop, ormobile device.Web Applications: These applications runs on theapplications servers such as Tomcat, Apache Geronimo etc. Web applicationsdeployed on Web Servers generates dynamic web pages to the host client browsers.On the client side it needs web browsers. There are many frameworks available inJava for development of Web Applications.WebStarts applications: These are special application whichis stored on the web server but downloaded by client and runs on the clientside.Android Applications: Java provides API and framework fordeveloping the applications for Android phones.A Java application is consists of Classes and Resource files.

Java developerdevelops few of the Java classes specific of their application requirement anduses existing thousands of Java classes from JDK and various other frameworks.Java resources are text file, image file, sound file, video file or any otherfiles which is used for that particular application.How to start learning Java?First of all you have to download JDK on your computer and install. After youwill have to configure the JDK and the development tool such Eclipse. Initiallyyou should start writing program in note pad, use command prompt to compile andrun the application.Then the next step is to learn about classes and objects in Java.

Java Network Programming Tutorial Roseindia Servlet Download

. How to perform connection-oriented Socket Programming in networking?. How to display the data of any online web page?.

How to get the IP address of any host name e.g. Www.google.com?. How to perform connection-less socket programming in networking?Java Networking TerminologyThe widely used java networking terminologies are given below:. IP Address. Protocol. Port Number. MAC Address.

Connection-oriented and connection-less protocol. Socket1) IP AddressIP address is a unique number assigned to a node of a network e.g. It is composed of octets that range from 0 to 255.It is a logical address that can be changed.

Java Network Programming Tutorial Roseindia Servlet

2) ProtocolA protocol is a set of rules basically that is followed for communication. For example:. TCP. FTP. Telnet. SMTP.

Tutorial

POP etc.3) Port NumberThe port number is used to uniquely identify different applications. It acts as a communication endpoint between applications.The port number is associated with the IP address for communication between two applications.

4) MAC AddressMAC (Media Access Control) Address is a unique identifier of NIC (Network Interface Controller). A network node can have multiple NIC but each with unique MAC. 5) Connection-oriented and connection-less protocolIn connection-oriented protocol, acknowledgement is sent by the receiver. So it is reliable but slow.

The example of connection-oriented protocol is TCP.But, in connection-less protocol, acknowledgement is not sent by the receiver. So it is not reliable but fast. The example of connection-less protocol is UDP. 6) SocketA socket is an endpoint between two way communication.Visit next page for java socket programming.

Java Network Programming Tutorial Roseindia Servlet Free

Java.net packageThe java.net package provides many classes to deal with networking applications in Java.