Skip to main content

· 4 min read
Preet Shah

Introduction to Garbage Collection

In languages like C/C++, managing memory manually is a crucial task for programmers. Forgetting to deallocate memory can lead to memory leaks and program crashes due to insufficient memory. However, Java provides an automatic memory management system known as the Garbage Collector (GC), which handles memory deallocation for you.

· 4 min read
Preet Shah

Introduction to Access Modifiers

Java access modifiers are fundamental to Java's object-oriented nature, providing various levels of encapsulation by controlling access to classes, fields, methods, and constructors. Understanding these is crucial for designing secure, well-structured, and maintainable Java applications. Here's a more detailed dive into each of the Java access modifiers:

· 5 min read
Preet Shah

Introduction to Data Types in Java

Data types in Java specify the size, type, and operations of data that can be stored in a variable. In Java, a statically-typed language, every variable must be declared with a data type. The data type of a variable determines how much space it occupies in memory and what kind of operations can be performed on it.

· One min read
Preet Shah

To initiate a new Chrome session with CORS disabled on Windows for testing purposes, you can use either of the following commands:

Launch the Command Prompt (cmd) terminal and navigate to the directory where the chrome.exe is situated.

Typically, it can be found in either the Program Files or Program Files (x86) directories. Executing the following commands will initiate a new Chrome window with the security policy disabled:

C:\Users\shahpreetk> cd C:\Program Files\Google\Chrome\Application


C:\Program Files\Google\Chrome\Application> chrome.exe --user-data-dir="C:/temp/chrome" -—disable-web-security