Reflection in Java

Overview In this blog, we will cover the following points What is Reflection API? Using private methods Using private fields Sample Code Reflection API Reflection allows instantiation of new objects, invocation of methods, and get/set operations on class variables dynamically at run time without having prior knowledge of its implementation. Read more…

JVM, JDK, and JRE

Overview In this blog, we will cover the following points What is JVM, JRE & JDK Steps to run a java file JVM (Java Virtual machine) JVM is responsible for converting Byte code to the machine-specific code. JVM is also platform-dependent and provides core java functions like memory management, garbage Read more…

Static keyword in Java

The static keyword can be used with class, variable, method and block. Static members belong to the class instead of a specific instance, this means if you make a member static, you can access it without an object. Static Block A static block is used for initializing the static variables. Read more…

Memory Leak in Java

Memory Leak The standard definition of a memory leak is a scenario that occurs when objects are no longer being used by the application, but the Garbage Collector is unable to remove them from working memory – because they’re still being referenced. As a result, the application consumes more and Read more…

Java Garbage Collection

Java Garbage Collection is the process to identify and remove the unused objects from the memory and free space to be allocated to objects created in the future processing. One of the best feature of java programming language is the automatic garbage collection, Garbage Collector is the program running in Read more…