Posts

Showing posts from October, 2020

Path Finding Algorithm (A* and Dijkstra's)

Image
This Blog is about a project which I did in JANUARY 2021. I created a path finding algorithm simulator using JavaFX. It helps to get a visual representation of two path finding algorithms which are A* and Dijkstra's Path finding Algorithm. I used JavaFX because it is one of the fastest growing technologies in java and it is replacing java swing .JavaFX is much more powerful then java swing and  it has some amazing features like we can apply CSS in JavaFX. The reason why I choose  to A* and Dijkstra's Path Finding Algorithm from a Pool of Algorithm because they help us to  get a basic knowledge of Path finding in Graph. These two are also really great for comparison  with each other and they are also quite famous. Working so let me tell you how this application works. You can download the project by clicking here and then  configure it  in your favorite java IDE .  Now if you have configured the project which I don't think so, then press the run button in your IDE. when the

JVM Architecture

Image
 JVM(JAVA VIRTUAL MACHINE) is a Process Virtual Machine . It runs as a normal application inside a host OS(Operating System) and Supports a Single process. It's purpose is to provide a platform -independent programming environment that abstracts away details of underlying hardware or OS. JVM acts as a Runtime engine to run Java based applications. It's task is to load ".class"  file and run ".class" file. JVM is a part of JRE which is a part of JDK . JVM  ARCHITECTURE The Architectural Diagram of JVM is shown above. JVM basically consists of five Major Parts: 1. Classloader subsystem. 2. JVM memory. 3. Execution Engine. 4. Native Method Interface. 5. Native Method Libraries. so lets talk about each part one by one. Classloader Subsystem:  Java's loads the classes dynamically and this feature of java is provided by the Classloader Subsystem. It's main task is to load, link and initialize the class file when it refers to a class for the first time duri