• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer
  • Home
  • Java Tutorial
  • Java Posts
  • Node.js
  • Spring Core
  • Algorithms
  • Docker
  • Blogging
  • Misc
Tech Stack Journal

Tech Stack Journal

Introduction

Contents

  • 1 What is Java?
  • 2 What are JRE and JDK?
    • 2.1 Java Runtime Environment
    • 2.2 Java Development Kit
  • 3 Creating and Running Java Application

What is Java?

In simple words, Java is a Programming Language and at the same time, it’s also a Runtime Environment.

As a Programming Language, Java provides us syntax, data type, control structures, object-oriented programming rules, APIs, etc.

As a Runtime Environment, Java provides a base or required infrastructure to execute Java programs on any device, be it Windows, Linux, Mac OS or any Electronic device etc.,

Originally developed by James Gosling and Team at Sun Microsystems and released in 1995, later acquired by Oracle Corporation in 2009.

What are JRE and JDK?

JRE and JDK are software bundles that you can download from oracle.com and install on your computer.

Java Runtime Environment

Imagine, you want to play a game that’s developed in Java. To run that game, you would need to install Java Runtime Environment (JRE) software on your machine.

JRE comprises Java Virtual Machine (JVM) which is responsible to run the Java application.

Without JVM, your machine can’t execute a Java program. Java program is a foreign language to your machine, it needs some interpreter to make it understand what exactly has to be done. JVM is that interpreter to your machine.

JVM interprets Java program and conveys the instructions to Machine

Java Development Kit

JDK is for programmers, those who want to create Java applications.

Java Development Kit is a software bundle that provides all the resources, including JVM, to a programmer to make Java applications.

Creating and Running Java Application

Javac compiles the source to byte code, Java (JVM) executes the byte code.
  • JDK provides javac compiler, which compiles the Java source code to byte code.
  • JVM interprets the byte code and executes the program

Primary Sidebar

More to See

Arrays.asList in Java Examples

February 21, 2021 By Admin

[Solved] Why List.add throws UnsupportedOperationException in Java?

February 20, 2021 By Admin

Secondary Sidebar

  • Java Tutorial
    • Introduction
    • Install Java
    • First Java Program
    • Statements and Comments
    • Packaging the Classes
    • Variables
    • Primitive Data Types
    • Operators
    • if-else statement
    • Loops in Java
    • Arrays
    • break and continue
    • Switch Statement
    • Classes and Objects
    • Methods
    • Encapsulation
    • Constructor in Java: All You Need To Know
    • Inheritance
    • Access Modifiers
    • Static Variables and Methods
    • Final keyword in Java
    • Abstract Class
    • What is an Interface in Java?
    • Method Overloading
    • Java – Method Overriding
    • Polymorphism
    • Java – super Keyword
    • Nested Classes
    • Exception Handling
    • String Class

Categories

  • Algorithms
  • Blogging
  • Docker
  • Java
  • Misc
  • Node.js
  • Spring Core
  • Windows

Archives

  • February 2021 (6)
  • January 2021 (1)
  • December 2020 (1)
  • September 2020 (2)
  • August 2020 (5)
  • July 2020 (4)
  • June 2020 (1)
  • May 2020 (4)
  • April 2020 (22)
  • November 2019 (3)
  • September 2019 (2)
  • August 2019 (6)

Footer

Navigation

  • Home
  • Java Tutorial
  • Java Posts
  • Node.js
  • Spring Core
  • Algorithms
  • Docker
  • Blogging
  • Misc

Recent

  • How to Make File Explorer Open to This PC instead of Quick Access in Windows 10
  • Arrays.asList in Java Examples
  • [Solved] Why List.add throws UnsupportedOperationException in Java?
  • How to Convert an Array to List in Java?
  • How Many Spaces in a Tab?

Search

Copyright © 2021 · Tech Stack Journal · Log in