You are on page 1of 4
Why is Java Important? Java is important since it can be expended to the universe of Muitthreading objects that can move about frealy in cyberspace. Other reasons’ © Platform independant and portable language © Supports multthreading © Capable of ynamiclingng © Used to create Web-based anplicatons Ing network, two catagories of objcts ere trensmilled bohween the sorver and the client They a {© Passive information Example : Reading an email (© Actve programs [Bxamele: Applet, 9 dynam ek executng rogram (tere nant ‘nao Wem c mtn eee Types of Java Programs ‘Two types of Java programs are: 4. Application 2. Applet Application program: ‘© Runs standalone programs with the Java support of a virtual machine Frogams, © Is limited to the potential of the developer Applet program: © Is designed to be transmitted over the Internet and ‘executed by a Java compatible Web browser © Can react to user input and change dynamically Problems with Applets Two fundamental problems faced with epolets are: © Security © Portability Securit Some of the security related problems are (© Fear of viral infection © Fear of malicious program Remedy: © Providing a firewall between a networked application and your computer © Protection achieved by confining a Java program to the Java execution environment and not allowing i to eccess other parts of the computer Portability: Important for programs that are dynamically downloaded to the Internet, Bytecode Java programs are compiled into an intermediate bytecode language. Its then complied into machine language by a runtime program called the Java Virluel Machine(JVM), Bytecode is needed, for the following reasons. ‘© Alows Java to solve both the security end the portability problems © It's a highly optimized set of instructions designed to be executed by the Java run time system, called the Java Virtual Machine © Enatles translating a Java program in a wide variety of environments. The reason is only the JVM needs to be implemented for each platform os 7 GM nnn Check Your Understanding ‘Which one of the following programs can run on the Web browser? Bytecode oo Apalet Java virtual Machine } © Server application Summary In this session, you nave leamed that © Java's important, because itis platform independent, portable, and used to create ‘Web-based applications that allow users to Interact on the Internet. (© The two types of Java programs are: © Application © Apple's © The problems faced in implementing applets. are security and portability © Bytecodes are the intermediate codes, generated by the Java compiler

You might also like