Author Archives: Stanislav_Panteleev

JVM.MemoryManagement.What are thread stacks in JVM, and how are they managed?

Thread Stacks in JVM In the Java Virtual Machine (JVM), each thread has its own stack to store method execution details, local variables, and partial results. The stack operates in a Last-In-First-Out (LIFO) manner and is crucial for function calls … Continue reading →

Posted in Без рубрики | Comments Off on JVM.MemoryManagement.What are thread stacks in JVM, and how are they managed?

JVM.MemoryManagement.What are the differences between Young Generation, Old Generation, and Permanent Generation (or Metaspace)?

Posted in Без рубрики | Comments Off on JVM.MemoryManagement.What are the differences between Young Generation, Old Generation, and Permanent Generation (or Metaspace)?

JVM.MemoryManagement.What is the stack memory in JVM, and how does it differ from heap memory?

Stack memory in the JVM is used for storing method call frames, local variables, and intermediate computations. It is a private, thread-local memory allocated per thread when it starts.

Posted in Без рубрики | Comments Off on JVM.MemoryManagement.What is the stack memory in JVM, and how does it differ from heap memory?

JVM.MemoryManagement.What is the heap memory in JVM, and how is it used?

The Heap memory in JVM is the runtime memory where all Java objects and instance variables are stored. It is the largest part of the JVM memory and is shared among all threads.

Posted in Без рубрики | Comments Off on JVM.MemoryManagement.What is the heap memory in JVM, and how is it used?

JVM.MemoryManagement.Explain the JVM memory model and its components.

The Java Virtual Machine (JVM) memory model defines how Java manages memory during program execution. It is divided into several components, each responsible for handling different aspects of memory management.

Posted in Без рубрики | Comments Off on JVM.MemoryManagement.Explain the JVM memory model and its components.

Java.What is modular applications ?

What Are Modular Applications in Java? A modular application in Java is an application structured using the Java Module System (JPMS), introduced in JDK 9. It allows developers to organize, encapsulate, and manage dependencies in a more scalable way compared … Continue reading →

Posted in Без рубрики | Comments Off on Java.What is modular applications ?

Java.What is the classpath in java ?

The classpath in Java is a parameter that tells the JVM where to look for user-defined classes and resources when running a Java application. It defines the locations of .class files and JARs needed by the program. How Does Classpath … Continue reading →

Posted in Без рубрики | Comments Off on Java.What is the classpath in java ?

JVM.Classloading.What is the difference between static and dynamic class loading?

Difference Between Static and Dynamic Class Loading in Java In Java, class loading can be categorized into Static Class Loading and Dynamic Class Loading. The key difference lies in when and how the classes are loaded into memory.

Posted in Без рубрики | Comments Off on JVM.Classloading.What is the difference between static and dynamic class loading?

JVM.Classloading.What is a custom ClassLoader, and when would you use it?

What is a Custom ClassLoader in Java? A custom ClassLoader is a user-defined implementation of Java’s ClassLoader that controls how classes are loaded into memory. It allows you to load classes from non-standard sources like: Remote servers Databases Encrypted JARs … Continue reading →

Posted in Без рубрики | Comments Off on JVM.Classloading.What is a custom ClassLoader, and when would you use it?

JVM.Classloading.What is the Class.forName() method, and how does it work?

The Class.forName() method in Java is a built-in reflection mechanism used to dynamically load a class at runtime. It returns a Class<?> object representing the loaded class.

Posted in Без рубрики | Comments Off on JVM.Classloading.What is the Class.forName() method, and how does it work?