• common performance problems solved by java

    Most important problems in internet and how java solve it:

    Since an applet is opened or executed after downloaded without user interaction on the client computer, such a program must be prevented from must be prevented from doing harm. It must also be able to run in a variety of different environment and under different operating system.
    How java solves this problem are discussed below:

    Security: 

    Every time a user downloads a program user is taking risk because the code user is downloading might contain a virus, Trojan horse or other harmful code. At the core of the problem is the fact that malicious code can cause its damage because it has gained unauthorized access to system resources. In order for java to enable applets to be downloaded and executed on client computer safely it was necessary to prevent an applet from launching such an attack.

    Solution: 

    Java achieved this protection by confining an applet to the java execution environment and not allowing it access to the other parts of the computer. This gives the ability to download applets without risking any harm or security breach. The fact that a java program executed by the JVM(Java Virtual Machine ) also helps to make it secure because the JVM is in control it can contain the program and prevent it from generating side effects outside of the system.

    Portability:

     It is a major aspect of the internet because there are many different types of computers and operating system connected to it. If a java program were to be run on virtually any computer connected to the internet there needed to be some way to enable the program execute on different systems.

    Solution: 

    Translating a java program into bytecode makes it much easier to run a program in a wide variety of environments because only the JVM needs to be implemented for each platform. All though JVM will differ from platform to platform all understand the same java bytecode. If a java program were compiled to a native code, then different versions of the same program would have to exists for each type of CPU. Thus execution of byte code by J.V.M has truly solved the portability problem.

  • You might also like

    No comments:

    Post a Comment

search topics

NEWSLETTER

Get All The Latest Updates Delivered Straight Into Your Inbox For Free!