Simple
Java is a simple programming language. Learning and practicing Java is easy because of its resemblance with C and C++.Object-Oriented
Unlike C++, Java is a purely object oriented programming language. Java programs use objects and classes. A class is an idea or a model for creating objects. Object exists physically but class not exists physically. A class also contains variables and methods.Distributed
Information is distributed on various computers on a network. Using Java, we can write programs which capture information and distribute it to clients.Robust
Java programs will not crash easily because of its exception handling and its memory management features.Secure
Java enables the construction of virus-free and tamper-free systems.Architecture Neutral
Java’s byte code is not machine dependent. It can be run on any machine with any processor and with any OS.Portable
Java programs give same results on all machines. Every thing is clearly defined in Java specification and nothing is left to OS.Interpreted
Java programs are compiled to generate the byte code. This byte code can be downloaded and interpreted by the interpreter.High Performance
Along with interpreter there will be JIT compiler which enhances the speed of execution.Multithreaded
We can create different processing's in Java called threads. This is an essential feature to design server side programs. Thread is a process or execution.Dynamic
We can develop programs in Java which dynamically interact with the user on internet.Why Java is Platform Independent?
The Java compiler is an executable file and compiles Java source code to byte code (.class) which is then interpreted by the JVM to machine language instructions like any other native languages (eg: C Language).Here is an interesting aspect - Java Compiler is not platform independent but the byte code is. The byte code once compiled by any Java compiler in any platform can be interpreted by the JVM in other platforms thus making Java platform independent.
No comments:
Post a Comment