How Java addresses the issue of portability and security

Explain how Java addresses the issue of portability and security.

Addressing Portability:
Many computers of different types with several operating systems are connected to network / internet. All the programs that are dynamically downloaded to various platforms through internet, should generate code for execution which is portable.

The Java specification defines clearly the way of behavior. There is a comprehensive specification for desktop applications, JEE applications as well for EJB applications. JEE and EJB specifications are available to run the built applications on any compatible Java application or web server. These specifications may be for JSE or JEE or even EJB applications. Once the behavior is correctly implemented by various vendors, the specified application could run on any Java specification as a contract in between the developers and the implementers of the Java specification.

The reference implementation of JEE provides a sample implementation to the developers which is compatible for JEE platform. It allows the developers to test the implementation and the vendors to test and verify the implementation. The JEE Compatibility Test Suite (CTS) is provided by Sun Microsystems. It is a standard suite with more than 15000 test cases for the JEE applications portability.

Addressing Security:
Certain security risks like viral infection, malicious programs detection are guarded by Java enabled web browsers and are active when a program is downloaded. The malicious programs / virus programs could gather sensitive information such as passwords, bank account number, credit card numbers etc. Java addresses these issues by executing a program known as ‘firewall’. This program resides in between the downloadable program and the system which downloads it.

Also, as far as application data is concerned, the access specifiers ‘private’, ‘protected’ can be used cautiously to protect the data with in the scope of the application.
Different data types for integers and floating-point values - Java
The integer and floating-point types are different in terms of the consumption of the bits which represent them...
What is endianness? - Java
Endianness is the process of ordering the addressable sub units such as words, bytes or bits in a longer word that is to store in an external memory...
Why Java uses Unicode? - Java
To enable a computer system for storing text and numbers which is understandable by humans, there should be a code that transforms characters into numbers. ...
Post your comment