DEV Community

Cover image for Introduction to JAVA:
Chithra Priya
Chithra Priya

Posted on

Introduction to JAVA:

What is Java?

Java is a high-level, object oriented programming language. It was first introduced in Sun Micro system in 1991. Now owned by oracle corporation. It was designed to be platform independent it means java can run on any device and any operating system that has a Java Virtual Machine(JVM) installed. "Write once, Run anywhere" Approach. Where code written in java can be compiled into bytecode that executed on any system with help of JVM.

Features of Java:

1. Platform Independence: When we write Java code, it is first compiled by the compiler and then converted into bytecode.
This byte code can run on any platform which has JVM installed.

2. Object Oriented: Java follows the object oriented programming

3. Simple and Familiar: Java syntax is inspired by C and C++, making it familiar to many programmers.

4. Robust and Secure: Java has feature like memory management, strong type checking, and exception handling to ensure robust and secure program.

5. Multi-threading: Java supports Multi-threading, allowing multiple tasks to be executed concurrently.

6. Dynamic: Java supports dynamic memory allocation and garbage collection, simplifying memory management.

7. High performance: While java programs might not be as fast as compiled languages like C++. Java performance has improved overtime, thanks to JVM optimizations.

8. Distributed: Java has libraries for creating distributed applications allowing components to communicate over a network.

9. Portable: Java "Write once, Run anywhere" capablity makes it highly portable.

10. Rich Standard library: Java provides a vast standard library for various tasks, from data structures to network communication.

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).

Java code Execution process:

Top comments (0)