JAVA | Explain features: (i)Platform Independence (ii)Robust (iii)Dynamic (iv)Object oriented

(i)Platform Independence-
Java is platform independent because it is different from other languages like C, C++, etc. which are compiled into platform specific machines while Java is a write once, run anywhere language. A platform is the hardware or software environment in which a program runs. 

Java code can be run on multiple platforms, for example, Windows, Linux, Sun Solaris, Mac/OS, etc. Java code is compiled by the compiler and converted into byte code. This byte code is a platform-independent code because it can be run on multiple platforms, i.e., Write Once and Run Anywhere 

(ii)Robust
Robust simply means strong. Java is robust because: 
 It uses strong memory management. 
 There is a lack of pointers that avoids security problems. 
 There is automatic garbage collection in java which runs on the Java Virtual Machine to get rid of objects which are not being used by a Java application anymore. 
 There are exception handling and the type checking mechanism in Java. All these points make Java robust. 

(iii)Dynamic
Java is a dynamic language. It supports dynamic loading of classes. It means classes are loaded on demand. It also supports functions from its native languages, i.e., C and C++. 

(iv)Object oriented
Java is an object-oriented programming language. Everything in Java is an object. Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behavior. 

Post a Comment

0 Comments