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 Var, let and const Temporal dead zone lexical scope Higher-Order Functions Functions that operate on other functions, either by taking them as arguments or by returning them, are called higher-order functions Shallow copy and Deep copy Difference B/W These functions Function Expression Function Declaration Function Statement Anonymous Function Named Function Expression First […]

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

What is hash map?

A hash map (also known as a hash table) is a data structure that stores key-value pairs, allowing for efficient data retrieval based on keys. It is widely used for fast lookups, insertions, and deletions. Key Concepts of a Hash Map: Key-Value Pair: Each element in a hash map is stored as a pair, consisting […]

person shubham sharmaaccess_time October 15, 2024launch Read More