1. What is Java?
2. What is Java Platform?
3. How is Java Platform Independent?
4. Features of Java:
Β· Object-Oriented
In Java, everything is an Object. Java
can be easily extended since it is
based on the Object model. Java inherits the Oops features like abstraction, encapsulation, inheritance, polymorphism.
Β· Platform Independent
Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into a platform-specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.
Β· Simple
Java is designed to be easy to learn. If you understand the basic concept of OOP we can easily become master in java.
Β· Secure
With Java's secure feature it enables us to develop virus-free systems.
β’ It allows all the Java programs to run inside the sandbox only and prevents many activities from untrusted resources including reading or writing to the local disk, creating any new process, or even loading any new dynamic library while calling a native method.
β’ Java never uses any kind of pointers. Java has an internal mechanism for memory management.
β’ Byte code is another thing that makes Java more secure.
Β· Architectural-neutral
Java compiler generates and the architecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence of the Java runtime system.
Β· Portable
Java is portable because of being no implementation-dependent aspects of the specification. Compiler in Java is written in ANSI C which makes it portable.
Β· Robust
Java is robust because of strong exception handling techniques and strong memory management. Java makes an effort to eliminate error-prone situations by focussing on compile-time error checking as well as runtime checking. Also, Java has an automatic garbage collection process that frees the memory by deleting no longer used objects.
Β· Multithreaded
With Java's multithreaded feature it is possible to write programs that can do many tasks simultaneously. This allows us to minimize the workload of a single thread and to minimize the execution time.
Β· Interpreted
Java byte code is translated on the fly to native machine instructions and is not stored anywhere.
Β· High Performance
With the use of Just-In-Time compilers, Java enables high performance. Because JIT executes the bytecode only on a requirement basis.
Β· Distributed
Java is designed for the distributed environment of the internet where we can implement client-server applications, also invoke remote methods.
Β· Dynamic
Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry an extensive amount of run-time information that can be used to verify and resolve access to objects on run-time.
5. Architecture of JVM(Java Virtual Machine)

3 comments
Click here for commentsNice covered tutorial π
ReplyNice content and tutorial π
ReplyNice postπ
ReplyConversionConversion EmoticonEmoticon