DEV Community

Ezhil Abinaya K
Ezhil Abinaya K

Posted on

Introduction to Java

Java
Java is a high level programming language.It was introduced by James Gosling in 1995. It is a widely used programming language for building web, desktop, mobile, and enterprise applications. It is known for its simple syntax, portability, and powerful features that make development easier and more secure.
Why Java was Introduced?
A video was played in our machine (laptop/system).Where did played video ?In our machine memory run that video . So, before memory accesed it first access by processor and then goes to memory.Here, c++ programming language needs a separate intermediator(Translator) but called as compiler to convert machine language (binary 0,1).Here, translation work was done but why named as compiler? There are 2 types of translator.
1. Compiler.
2.Interpreter.
Compiler: It reads whole program and then speak with computer.
Interpreter: It reads line by line.
If c++ what issue faced? C++ did not compile for the each different machine.If each machine has different platforms so, different machines needs compiler.If issue was faced in 1990's and in 1992 mid or end all teams works and introduced JAVA.Initially, it was named OAK at that time, faced some issue so JAVA name was come.
Java Architecture
Java Code didnt convert directly machine language. It first converts into byte code(.class).Byte code compilation was done by Java Development Kit(JVK).JVK is a set of software. Before byte code change , the program has no error after only it compile byte codes..class byte codes line by line reads and converts into binary (machine language).This process is called Java In Time Compiler (JIT).Machine level language is a low level language. Java is a high level language.The JIT and JDK has no connection so thats only tell java is a platform independent. Every machine has same byte code. JIT didnt give directly to the machine.It clones environment like machine .That's called Java Virtual Machine (JVM).
JAVA ---> Byte ---> 0,1(JRE)


public class Home
{
public static void main(String[] args)
{
 System.out.println("Hello World");
 }
}
Hello World
Enter fullscreen mode Exit fullscreen mode

Features of Java

  • Object-Oriented Programming (OOP) supports modular and reusable code using classes and objects.
  • Platform Independence allows Java programs to run on any operating system with a JVM.
  • Robust and Secure provides strong memory management, exception handling, and built-in security features.
  • Multithreading and Concurrency enables multiple tasks to execute simultaneously for better performance.
  • Rich API and Standard Libraries offer extensive built-in libraries for common programming tasks.
  • Frameworks for Enterprise and Web Development support building enterprise applications, web applications, and REST APIs.
  • Open-Source Libraries provide a large ecosystem of libraries to extend functionality.
  • Maintainability and Scalability make Java applications easy to maintain, enhance, and scale as requirements grow.

Reference
https://www.geeksforgeeks.org/java/introduction-to-java/

Top comments (0)