07-12-2012, 05:02 PM
CHAT SERVER USING JAVA
CHAT SERVER.doc (Size: 87 KB / Downloads: 31)
INTRODUCTION
The meaning of project is to give physical existence to the variation brain ideas and thoughts. Project is a great source to develop technical skills in the Technical student.
During the programming of the project student goes through different problems and experience. A student gets a change to climb on the roof of practical knowledge to economize to go at the fields. A very important aim of this word “PROJECT” consist of seven alphabets each of them has separate meaning.
“P” for Planning – Planning is good an impressive half work is done.
“R” for RELAIABLE SOURCE – Practice and theoretical material and able guidance and assistance is achieved from different sources to promote the function of planned area.
“O” for OVERALL EXPENSES – Overall expenses to provide final design to any project is also considerable. Their expenses are analyzed for each concepts and method of working on the computer.
“J” for JOINT EFFORTS – Joint efforts are much necessary for programming and result of any project. Many times some problems as books etc., are solved for external sources.
“E” for ECONOMIC TIME FEASIBILITY – It is important that the planned scheme is how much economic time feasible. It is must to analyze estimate for completion of the project.
“C” for CONSTRUCTION – After analyzing the project work is done to give logical existence of planned scheme.
“T” for TESTING – Testing of program is done before submitting the project after resting the gadget is ok for use.
About Programming Language “Java”
Java was conceived by James gosling, Patric naughton, Chris warth, Ed frank, and Mike sheriden at Sun Microsystem, inc in 1991. This language was initially called “oak” but was renamed “Java” in 1995, between the initial implementation of oak in the fall of 1992 and public announcement of java in the spring of 1995, many more people contributed to the design and evolution of the language. Bill Joy, Arthur van hoff, jonathan payne, frank yellin, and tim lindholm were key contribution to the maturing of the original prototype.
Somewhere surprisingly, the original impetus for java was not the INTERNET ! Prototype. The primary motivation was to need for a platform-independent (that is architecture –natural) language that could be used to create software to be embedded in various consumer electronic devices such as microwave ovens and remote control as you can probably guess many different types of CPU are used as controllers the trouble with C and C++ (and most other language) is that they are designed to be compiled for a specific target. Although it is possible to compile a C++ program for just about any type of CPU, to do so requires a full compiler targeted for that CPU.
Encapsulation
ENCAPSULATION is the mechanisms that binds together code and the data it manipulates, and keeps both safe outside interference and misuse. It is a protective wrapper that prevents the code and data from being arbitrarily accessed by other code defined outside the wrapper.
Encapsulation is the capability to represent, denote and handle information at a higher level that is inherent to a computer or base language. Variables and methods are formerly known as instance variables and instance methods to distinguish from class variables and class methods.
Inheritance
Inheritance is the process by which one object acquires the properties of another object.
Classes inherit state and behavior from their superclass. A class is a blueprint or prototype that defines the variables and methods common to all objects of a certain kind.
Object oriented systems allow classes to be defined in terms of other classes. For example, mountain bikes, racing bikes and tandems are all subclasses of the bicycle class. Similarly, the bicycle class is the superclass of mountain bikes, racing bikes and tandems.
Each subclass inherits state (in the form of variable declarations ) from the superclass. Mountain bikes, racing bikes and tandems share some states : Cadence, speed, and the like. Also each subclass inherits methods from the superclass.
Benefits of Inheritance
Subclasses provide specialized behaviors on the basis of common elements provided by the superclass. Through the use of inheritance programmers can reuse this code in the superclass many times.
Abstraction
Abstraction, is this process of categorising data. Consider that a person is looking for a frame in an optician's shop. To be able to choose a frame from amongst the various types of frames available, he has to first identify the attributes he is looking far. Once he has identified the attributes, he has with him a category or class of frames. Similarly, to model any real life objects in OOPS an "object" has to be instantiated from a specific "class". This basic process of forming a class is known as "Abstraction".
Java and World Wide Web
Java was basically designed for the web browsing. Java had some excellent features which other languages did not have. The internet helped catapult java to the forefront of programming, and java, in turn, has had a profound effect on the internet. The reason for this quite simple:java expands the universe of objects that can move about freely in cyberspace. Ina network, two very broad categories of objects are transmitted between the server and your personal computer: passive information and dynamic, active programs
Java Environment
Using Java, it is impossible to build applications that access libraries and applications in other languages; that is, unless you are willing to use the underlying operating system (OS). This is not a failure of Java, but simply a result of its lack of external device support. Until such support is provided, Java developers must find alternative methods to interact with libraries and applications written in other languages. One alternative is the Java Native Interface (JNI). These techniques provide a stop-gap measure until device support becomes part of the Java environment
The JNI provides a documented and supported specification that allows programs written in other languages to be called from Java. Calling Java from an application written in another language is often referred to as embedding, and the process requires an understanding of the Invocation API. The JNI also provides a way for applications written in other languages to call Java.