This is my first post, I here to explain my learning experience
What is Java? Why we learn Java? some kind of questions arise in our my mind before we start to learn java.
The Java is the open source language and open source (the code is visible) is the safest one and it’s a freedom language (free language). It’s maintained by world wide developers community.
Java is developed by oops( object oriented programming structure) concept
Java( has compiler with interpreter structure)
Java development kit
Java virtual machine
Java running environment
Just in timer

Note: The reason to call Java to open source , it is platform independent
Here the platform is os( operating system) and hardware.
Java has compiler and interpreter
1.compiler
It is used translate bunch of code into machine code at a time
2.interpreter
It translate every code to machine code one by one
Jdk
It is the tool to run the program. It has compiler, exception handling, garbage collector.
once the compilation complete the machine code move to processor, after processing we got output.
It converts source code into Java byte (encrypted format ) .class file

JVM
It is used to reduce running time while different OS and hardware system can run same program
The JVM has its own compiler.
It helps the group of different platform systems can the program and it includes just in time compiler.

Java runtime environment is take the Java code compile them and use some set set of libraries to run the program.