UNIT II -JAVA PROGRAMMING

5 Socket Programming ‡ 2.12 Image Handling ‡ 2.13 Remote Method Invocation .2 I/O Streaming ‡ 2.7 E-mail client ‡ 2.3 Files ‡ 2.1 Java Basics ‡ 2.10 Content Handlers ‡ 2.‡ 2.6 Client/Server Programs ‡ 2.4 Looking up Internet Address ‡ 2.8 Web Page Retrieval ‡ 2.11 Applets ‡ 2.9 Protocol Handlers ‡ 2.

‡ Java is platform independent compiled language.1 JAVA BASICS ‡ Java is related to C++.2. ‡ Java generates byte code. ‡ Java programs can run on any computer once the runtime package exists for a given system. Java derives its syntax from C. . which is called Java Virtual Machine (JVM). Java¶s Object oriented features were influenced by C++. which is a direct descendant of C. Byte code is a highly optimized set of instructions designed to be executed by the Java run time system. ‡ JVM solves the major problems associated with web based programs.

Distributed 11. Portable 4. Architecture-neutral 8. Simple 2. Object Oriented 5. Robust 6. Multithreaded 7. Interpreted 9.CHARACTERISTICS OF JAVA PROGRAM 1. High Performance 10. Secure 3. Dynamic .

y SIMPLE y Java was designed to be easy for the professional programmer to learn and use effectively. y OBJECT ORIENTED y Java program describes the basic principles of object oriented programming . y Object oriented programming concepts can be explained easily using Java.

Using multi threading concept multiple process can be executed. . Java also maintains smooth synchronization during multi threading process. It eliminates Memory management problems and mishandled exceptional conditions by managing memory allocation and de allocation 2. It provides garbage collection for unused objects. 2. ‡ MULTITHREADED 1.‡ ROBUST Java is robust because 1.

The main problem is that no guarantee exists that if you write program today. any time. But Java designers made several hard decisions in the Java language and the Java Virtual Machine in an attempt to alter this situation. forever´ . The central issue for the Java designers was code longevity and portability. 2. 4. The main goal of Java program is ³Write once. Operating system upgrades. run anywhere. it will run tomorrow ± even on the same machine.‡ ARCHITECTURE NEUTRAL 1. 3. processor upgrades make a program malfunction.

The Java byte code is cross platform and can run in any machine. 2. Java is designed for the distributed environment of the Internet because it handles TCP/IP protocols. 2. Java also supports Remote Method Invocation (RMI). Java program is compiled in JVM which in turn creates Java byte Code.‡ INTERPRETED AND HIGH PERFORMANCE 1. 3. . ‡ DISTRIBUTED 1. RMI method enables a program to invoke methods across a network.

Java programs carry with them substantial amounts of run time information that is used to verify and resolve accesses to objects at run time. This makes it possible to dynamically link code in a safe and expedient manner. This is crucial to the robustness of the Java environment. .‡ DYNAMIC 1. 2. 3. in which small fragments of byte code may be dynamically updated on a running system.

Sign up to vote on this title
UsefulNot useful