SCShritej Chavaninlearnoswithshritej.hashnode.dev·Dec 24, 2025 · 1 min readRoles of the Process Table & Process Control Block (PCB)Helps in Scheduling Stores priority, CPU burst time, and arrival time so the CPU scheduler can choose the next process. Supports Context Switching Saves CPU registers, program counter, and stack pointer to resume a process later. Handles Interrup...00
SCShritej Chavaninjavawithshritej.hashnode.dev·Dec 3, 2025 · 2 min readDifferent ways to create an object in JavaNew keyword Creates an object by directly calling a class constructor using the new keyword. This is the most common and straightforward way. Example: Student s1 = new Student(); Using newInstance() / Reflection — (Dynamic Object Creation) Creat...00
SCShritej Chavaninjavawithshritej.hashnode.dev·Oct 14, 2025 · 2 min readWhy the filename must match the public class nameThe Java compiler and JVM need a clear way to find and load the correct class.When a class is declared as public, it means it can be used by any other class or program.So Java expects that: The public class name and the file name are the same. This...00
SCShritej Chavaninjavawithshritej.hashnode.dev·Oct 14, 2025 · 3 min readJava Two-step execution process:Java is a platform-independent language that follows a two-step execution process: Compilation (source code -> bytecode) Execution (bytecode -> machine code via JVM) Compilation in Java Java source code (.java files) is compiled by the Java Compi...00