4. Application System ClassLoader

The Application ClassLoader (also known as the System ClassLoader) is a class loader in Java responsible for loading classes defined by the application, such as those from the application’s classpath. It sits at the top of the Java ClassLoader hierarchy, above the Bootstrap and Extension ClassLoaders, and is the default class loader for classes in […]

person shubham sharmaaccess_time November 17, 2024launch Read More

3. Extension ClassLoader in Java

The Extension ClassLoader in Java is a class loader responsible for loading additional classes and libraries that extend the core Java runtime. It sits between the Bootstrap ClassLoader and the Application (System) ClassLoader in the class-loading hierarchy, and it specifically loads classes from Java’s extension libraries. Key Characteristics of the Extension ClassLoader Location of Extension […]

person shubham sharmaaccess_time November 17, 2024launch Read More

Bootstrap ClassLoader in Java

The Bootstrap ClassLoader in Java is the foundational class loader in the Java ClassLoader hierarchy. It’s responsible for loading the core Java libraries (like java.lang, java.util, java.io, etc.) that are essential for the Java runtime environment. Here’s a breakdown of what it does, how it works, and its place in the ClassLoader hierarchy. Key Characteristics […]

person shubham sharmaaccess_time November 17, 2024launch Read More

What is ClassLoader?

A ClassLoader in Java is a part of the Java Runtime Environment (JRE) responsible for dynamically loading Java classes into memory at runtime. Unlike languages where all classes are loaded before execution begins, Java uses class loaders to load classes only when they’re needed. This enables modularity, flexibility, and efficient memory use, as classes are […]

person shubham sharmaaccess_time November 17, 2024launch Read More

What is Spring and Spring boot?

What is Spring? Spring is a comprehensive Java framework used for building enterprise-level applications. It provides various tools, libraries, and infrastructure support to help developers create robust, scalable, and secure applications with ease. Spring emphasizes dependency injection (DI) and aspect-oriented programming (AOP) to help create loosely coupled and maintainable systems. Key Features of Spring: Dependency […]

person shubham sharmaaccess_time October 20, 2024launch Read More

didChangeDependencies()

The didChangeDependencies method in Flutter is part of the widget lifecycle. It is called whenever the widget’s dependencies change, such as when an inherited widget that the widget relies on is modified. This method is useful for when you need to update state or fetch resources based on changes in the widget tree’s dependencies. When is didChangeDependencies Called? After the first time […]

person shubham sharmaaccess_time October 16, 2024launch Read More

JavaScript key questions

Hoisting in JavaScript Definition: JavaScript moves variable and function declarations to the top of their scope during compilation — this is called hoisting.

Note: Variables declared with let and const are not accessible before initialization (Temporal Dead Zone). Var, Let, and Const Summary: These keywords define variables, but differ in scope and re-assignment rules. […]

person shubham sharmaaccess_time October 16, 2024launch Read More

didUpdateWidget()

The didUpdateWidget() method in Flutter is called when the parent widget rebuilds and the current widget is updated with new configuration data (i.e., new props or properties). This method is especially useful when you want to respond to changes in the data passed down from a parent widget but do not want to completely rebuild […]

person shubham sharmaaccess_time October 16, 2024launch Read More

Which thread MethodChannel use?

In Flutter, the MethodChannel communication between Flutter (Dart) and the native platform (Android/iOS) involves both Flutter’s thread and the native platform’s threads. The threads used for MethodChannel operations depend on how the method calls are invoked and handled. Threads Used by MethodChannel: Flutter Side (Dart Thread): When you call MethodChannel.invokeMethod() from Flutter, it runs on […]

person shubham sharmaaccess_time October 16, 2024launch Read More

What is MethodChannel flutter?

In Flutter, a MethodChannel is a way to communicate between Flutter’s Dart code and the platform-specific (native) code, such as Android (Kotlin/Java) or iOS (Swift/Objective-C). It is used to call methods and exchange data between Flutter and the native platform. This is necessary when you want to access platform-specific features that are not directly available through Flutter’s libraries (e.g., […]

person shubham sharmaaccess_time October 16, 2024launch Read More