Java Features
Java is a language that has become successful and popular because of the following features.
a shot of dev knowledge
What are the features of Java?
Java is a language that has become successful and popular because of the following features.
Platform independent
The Java programs compiled on one operating system can be transferred and executed on any Operating System without modifications. This can be achieved through an application called Java Virtual Machine
, as follows:
Once we create the java source code, we compile it using Java Compiler. The compiler then creates something called Java Byte code. This byte code can be copied and executed anywhere, even on mobile phones. Thus, Java is also called an Architecture Nuetral Language.
Object-Oriented
Java is the only language that is a purely object-oriented language. This means that every OOP concept is supported by Java. Also, it should be noted that even the main()
function needs to be defined under a class.
Compiled and interpreted
Java is a language that provides both compilation and interpretation of programs. Once the java program is created, it is compiled by Java Compiler. This compiled code (Byte code) can be executed using Java Interpreter.
Multi-Threaded
With this feature, Java supports “Multitasking”. Multitasking is when multiple jobs are executed simultaneously. Multitasking improves CPU and Main Memory Utilization.
a shot of dev knowledge
What are the features of Java?
Bsahil629-gitam🔊 Keep up to date
Sign-up for the Edpresso bI'mi-weekly newsletter! Stay up to date on the latest shots.
Stay up to date on the latest shots and our Top contributors!
Java is a language that has become successful and popular because of the following features.
Platform independent
The Java programs compiled on one operating system can be transferred and executed on any Operating System without modifications. This can be achieved through an application called Java Virtual Machine
or simply JVM
, as follows:
Once we create the java source code, we compile it using Java Compiler. The compiler then creates something called Java Byte code. This byte code can be copied and executed anywhere, even on mobile phones. Thus, Java is also called an Architecture Neutral
Language.
Object-Oriented
Java is the only language that is a purely object-oriented language. This means that every OOP concept is supported by Java. Also, it should be noted that even the main()
function needs to be defined under a class.
Compiled and interpreted
Java is a language that provides both compilation and interpretation of programs. Once the java program is created, it is compiled by Java Compiler. This compiled code (Byte code) can be executed using Java Interpreter.
Multi-Threaded
With this feature, Java supports “Multitasking”. Multitasking is when multiple jobs are executed simultaneously. Multitasking improves CPU and Main Memory Utilization.
Dynamic
This is one of the important features that made Java popular. Assume that we created 100
functions in a program. In no case, would all the functions are executed. But, in languages like C, whether it’s required or not, all the functions are loaded into memory, which results in wasting memory. However, in Java, a function is not loaded into the memory until you call the function. So, functions are only loaded when they are called (i.e., at run-time).
Comments
Post a Comment