JAVA | Describe any four features of Java.

Features of Java:
i. Java is an object oriented language:- It follows all the principles of  object oriented programming namely inheritance, polymorphism and abstraction. Multiple inheritance is possible with the concept
of interface 
ii. Java is both compiled and interpreted:- Most of the programming languages either uses a compiler or an interpreter. Java programs are to be compiled to get an intermediate byte code (a .class file)
and then interpreted making it more secure and platform independent. 
iii. Java is secure:
 Java does not use pointer.  
 Java programs run inside a virtual machine
 Class loader adds security by separating the package for the classes of the local file system from those that are imported from network sources
 Byte code Verify checks the code fragments for illegal code that can violate access right to objects
 Security Manager determines what resources a class can access such as reading and writing to the local disk
iv. Robust: Java uses strong memory management. The lack of pointers avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java 
v. Architecture-neutral: There is no implementation dependent features e.g. size of primitive types is fixed 
vi. Platform independent and Portable: java byte code can be carried to any platform 
vii. Distributed: Distributed applications can be created in java. RMI and EJB are used for creating distributed applications. We may access files by calling the methods from any machine on the
internet 
viii. Multi threaded: A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads. The main advantage of
multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. Threads are important for multimedia, Web applications etc.

Post a Comment

0 Comments