Java
- Java is a popular programming language.
- Java is used to develop mobile apps, web apps, desktop apps, games and much more.
Features of Java:
Platform Independence
Simple and Familiar
Multithreading
High Performance
Portable
Object Oriented
Robust and Secure
Dynamic
Distributed
Platform Independence:
Java is bytecode can be executed on any platform with the appropriate JVM.
Object Oriented:
Java follows the object-oriented programming paredigm, encapsulation, ingeritance,and polymarphism.
Simple:
Java is syntax is inspired by C++ and C ,making it familiar to may programmers.
Robust and Secure:
Java has feature like memory management, strong type checking, and
exception handling to ensure robust and secure programs.
Multithreading:
Java supports multithreading, allowing multiple tasks to be executed concurrently.
Dynamic:
Java supports dynamic memory allocation and garbage collection, simplifying memory management.
High Performance:
While java programs might not be as fast as compiled languages like C++, javas performance has improved over time,thanks to JVM optimizations.
Distributed:
Java “write once,run anywhere”capability makes it highly portable.
Architecture of Java:
Compiler: Compiler can convert java code to byte code (.java file to .class file) with help of Java development kit(JDK). It translate entire code of the program.
Interpreter: In Java, an interpreter is a program that executes Java bytecode instructions line by line. It’s a key component of the Java Virtual Machine (JVM).