Introduction to Java
What is Java, why java is used and where java is used?
Jvm Jre Jdk
A Java virtual machine (JVM) is a virtual machine that enables a computer to run Java programs. The Java Runtime Environment (JRE) is the underlying technology that communicates between the Java program and the operating system. The Java Development Kit is a distribution of Java Technology, It implements the Java Language Specification and the Java Virtual Machine Specification.
JVM(Java Virtual Machine) is not a machine, it is a program and is the heart of the entire java program execution process. It is responsible for taking .class file and converting each byte code instruction into the machine language instruction that can be executed by the microprocessor.
OOPs means Object-Oriented Programming which refers to languages that use objects in programming. Its aim is to implement real-world entities like inheritance, polymorphism, abstraction, etc in programming. The main popular object-oriented programming languages are Java, PHP, Python, C#, C++, etc. The function of OOPs is to bind the data and the functions together that operate on them so that no other part of the code can access this data except that function.
Data Types In Java
Data type in java specifies the size and type of values that can be stored in an identifier. They are helpful in representing how much memory is required to hold the data. It also represents what type of data to be allowed.