
Quick Contact
Java Tutorial
- What is Java?
- History of Java
- Hello Java Program
- Features of Java
- Basic Syntax
- Java Setup
- Data Types in Java
- Java Variables
- Operators in Java
- JVM
- Java If-else Statement
- Switch Case Statement
- Java Loops
- Do-While Loop
- Java While Loop
- Continue Statement
- Break Statement in Java
- Constructors in Java
- Oops Concept in Java
- Features of OOPs
- Inheritance
- Exeception handeling
- Aggregation (HAS-A relationship) in Java
- Method Overriding in Java
- Method Overloading
- Java Static Keyword
- Java This Keyword
- Java Final Keyword
- Polymorphism
- Static Binding and Dynamic Binding
- Abstract class in Java
- Access Modifiers in Java
- Difference between abstract class and interface
- Interface in Java
- Garbage Collection in Java
- Java Package
- Encapsulation
- Serialization and Deserialization in Java
- Java Inner Classes
- Java Applets
- Multithreading in Java
- Thread Priorities in Java
- Thread Creation
- Inter Thread Communication
- Wrapper Classes in Java
- Java Input Output
- Java AWT Introduction
- Java Layout Manager
- Java Layout Policy
- Java AWT Events
- Collection Framework
- Collection Framework List Interface
- Swing in Java
- Swing Utility Classes
- Swing Layout Managers
- Java JDBC
- Hibernate Framework Overview – Architecture and Basics
Springboot
- Spring Environment Setup
- Spring Boot CRUD REST API Project using IntelliJ IDEA | Postman | MySQL
- Dockerizing Spring Boot Application | Spring Boot Docker Tutorial
- spring-boot-restapidocumentation with swagger
- Spring Boot HttpClient Overview
- Apache HttpClient POST HTTP Request Example
- Apache HttpClient PUT HTTP Request Example
- Apache HttpClient DELETE HTTP Request Example
- Apache HttpClient HTML Form POST Request Example
- Spring Boot JSP Exampl
- Deploying Spring Boot WAR file with JSP to Tomcat
- Spring Boot Annotations
- Spring Core Annotations
- Spring MVC Annotations with Examples
- Spring Scheduling Annotations
- Spring - Java-based Container Configuration
- Spring Java Based Configuration Example
Hibernate
- Hibernate 5 hello world
- Hibernate- One to One Unidirectional Mapping Annotation Example
- Hibernate - Batch Processing
- Hibernate - Interceptors
- Hibernate 5 - Create, Read, Update and Delete (CRUD) Operations Example
- Hibernate Transaction Management
- Hibernate One to Many Unidirectional Mapping Example
- Hibernate One to Many Bidirectional Mapping Example
- Hibernate Many to Many Annotation Mapping Example
- Hibernate Primary KeyJoin Column
- Hibernate First Level Cache with Example
- Hibernate XML Configuration Example with Maven + Eclipse + MySQL Database
- Hibernate Java Configuration Example
- JPA 2 with Hibernate 5 Bootstrapping Example
- JPA and Hibernate Cascade Types
- Hibernate/JPA - Primary Key Generation
- Hibernate 5 - Enum Type Mapping Example
- Hibernate Component Mapping
- Hibernate Object States – Transient,Persistent and Detached
- Hibernate 5 - Save an Entity Example
- Hibernate 5 - Persist an Entity Example
- Hibernate 5 - saveOrUpdate() Method Example
- Hibernate 5 - get(), load() and byId() Method Examples
- Hibernate 5 - merge() Example
- Hibernate 5 - Delete or Remove an Entity Example
- Hibernate 5 - load() Method Example
- Hibernate Session Interface Methods
- Hibernate Session.clear() Method Example
- Introduction Of Java strutes to Architecture
- Struts 2 - Architecture
- Struts 2 - Configuration Files
- Struts 2 - Actions
- Struts 2 - Interceptors
- Struts 2 - Results & Result Types
- Struts 2 - Value Stack/OGNL
- Struts 2 - File Uploading
- Struts 2 - Database Access
- Struts 2 - Validations Framework
JAVA FX
- JavaFX Tutorial
- Introduction to JavaFX Pane
- JavaFX Popup
- JavaFX group
- JavaFX Controller
- JavaFX Gradient Color
- JavaFXAnchorPane
- JavaFXTabPane
- JavaFX Scene
- JavaFX Stage
- JavaFXWebView
- JavaFX Timeline
- JavaFX Timer
- JavaFX Image
- JavaFX Background
- JavaFX dialog
- JavaFX Font
- JavaFXTextArea
- JavaFXObservableList
- JavaFX GUI
- JavaFX FXML
- JavaFXEventHandler
- JavaFXGradle
- JavafxScrollpane
- JavaFXAPI
JVM
As we all know that Java is high-level programming language and the program which is written in high level language cannot run directly on any machine. First it need to convert into that specific machine language. The Java compiler does this thing, it takes java program (.java document containing source code) and makes an interpretation of it into machine code (alluded to as byte code or .class record).
Java Virtual Machine (JVM) is a virtual machine that lives in the genuine machine (your PC) and the machine language for JVM is byte code. This makes it simpler for the compiler as it needs to create byte code for JVM instead of various machine code for each kind of machine. JVM executes the byte code created by the compiler and produce output. JVM makes java platform independent.
In this way, presently we comprehended that the essential capacity of JVM is to execute the byte code delivered by the compiler. Each working framework has distinctive JVM, anyway the yield they produce after the execution of byte code is the same overall working frameworks. Which implies that the byte code produced on Windows can be a sudden spike in demand for Mac OS and the other way around.

JVM Architecture

Working of JVM
Class Loader:
Class loader reads the .class file and save byte code in method area.
Method Area:
In JVM there is only one method area which is common with all the classes. It holds the class level information of one by one .class file.
Heap:
It is a part of JVM memory where objects are allocated. For each .class file JVM creates class object.
Stack:
In Java stack, it is used to store temporary variable or we can also say it store frames.
PC(program counter) Registers:
It keeps the address of JVM instruction has been executed.
Native Method Stack:
It contain and access the native methods used in application.
Native Method Interface:
It empowers java code to call or be called by local applications. Local applications are programs that are explicit to the equipment and OS of a framework.
Garbage collection:
A class occasion is expressly made by the java code and after use, it is naturally wrecked by trash assortment for memory the executives.
Difference between JVM vs JRE vs JDK
JRE:
JRE is the environment inside which the java virtual machine runs. JRE contains Java Virtual Machine(JVM), class libraries, and different records barring improvement apparatuses, for example, compiler and debugger.
Which implies you can run the code in JRE yet you can’t create and assemble the code in JRE.
JVM:
As we talked about above, JVM shows the program to utilizing class, libraries and documents gave by JRE.
JDK:
JDK is a superset of JRE, it contains all that JRE has alongside improvement instruments, for example, compiler, debugger and so on.
Apply Now for Advanced Java Training Course