IGNOU MCS 024 assignment 2018-2019 assignment solved question 1b. Check out the solution of IGNOU 2018-2019 assignment here. Explain features of java programming language.
Objective
You will learn about the following in this guide / study material.
Solution of question 1b of MCS 024 assignment 2018-19 of Indira Gandhi National Open University.
Solved IGNOU MCS 024 assignment 2018-2019
Following are the main features of Java programming language:
Platform Independent
Java is Platform independent. The meaning of platform here may be confusing for you but actually this word is poorly defined. In the computer industry it typically means some combination of hardware and system software but here you can understand it as your operating system. Java is compiled to an intermediate form called Java byte-code or simply byte code.
Object oriented
Java is a true object-oriented language, which provides a platform to develop an efficient application and program real-life complexities.
Easy to learn
Java is easy to learn for programmers because it's syntax is similar to C and C++ programming languages and most of the complex parts of C/C++ have been excluded including operator overloading, multiple inheritance and pointers.
Robust
Java provides checking for possible problems at two levels, one at the compile time and the other at the run time, so programs are highly reliable and eliminate situations that are error-prone compared to C/C++. The best and worst features of C and C++ are pointers that help in direct manipulation of memory addresses. The power of pointers is as a great tool used by expert programmers for developing system software, driver, etc. But many times pointers are the main cause of runtime errors because of improper use of memory. Java eliminates pointer manipulation completely from the language, and therefore eliminates a large source of runtime errors. Java programmers need not remember to de-allocate memory in programs since there is a garbage collection mechanism which handles de-allocation of memory. It provides powerful a robust exception handling mechanism to deal with both expected and unexpected
errors at run time.
Secure
Java is intended to work in networked and distributed environments by providing security. All the references to memory are symbolic references, meaning that the user is not aware wherein the memory program is present, it totally depends on the JVM and machine on which the program is running. Each applet is loaded on its own memory space, which avoids the information interchange between applets.
Java applets can be executed in runtime environment that restricts them from introducing viruses, deleting and modifying files in the host computer. The Java-enabled web browser checks the byte code of applets to ensure that it should not do anything wrong before it will run the applet.
Multi-threaded
Before answering what is multithreading, let me explain to you what ‘thread’ is. Simply, a thread is a program’s path of execution. In your problems, when multiple events or actions need to occur at the same time, how you will handle it? For example, a program is not capable of drawing pictures when you keep pressing the keys of the keyboard. The program gives its full attention to receiving the keyboard input and doesn’t draw the picture properly.
Dynamic
Java was designed to adapt to an evolving environment, therefore the Java compiler is smart and dynamic. If you are compiling a file that depends on other non-compiled files, then the compiler will try to find and compile them also. The compiler can handle methods that are used before they’re declared. It can also determine whether a source code has been changed since the last time it was compiled. In Java classes that were unknown to a program when it was compiled can still be loaded into it at runtime. For example, a web browser can load applets of other classes without recompilation.
High Performance
As we know in Java we have to first compile the program, then execute it using Java interpreter. In general, interpreters are slow, because an interpreter executes programs instruction by instruction while Java is a fast-interpreted language. Java has also been designed so that the run-time system can optimize their performance by compiling bytecode to native machine code on the fly (execute immediately after compilation). This is called “just in time” (JIT) compilation.
So here was the fully solved IGNOU MCS 024 assignment 2018-19 question 1(b) - Explain the features of Java programming language.