Posts in "Core Java"

Java Class loader

Introduction : What is Classloader All class files in application are not loaded into memory at startup, but are loaded on demand as needed by the program, this loading of class is done by ClassLoader. ClassLoader is a part of JVM that loads classes into memory.

Variable shadowing

Today we’ll look into a rare feature of Java: variable shadowing First, let’s define what is a shadowed field or method: A field is considered shadowed when a subclass of its declaring class declares a field with the same name a variable having the same name and type is declared in the local scope a… Continue reading

Non Access Modifiers in Java

Access modifiers provide a mechanism for Access Control and different access modifiers can be used to achieve different accessibility. But Non Access Modifiers have nothing to do with accessibility. But it is used to determine specific characteristics of class/variable/methods etc. Below are the 7 Non Access Modifiers available in Java.

Access Modifiers in Java

Access modifiers (AM) in java help you set the level of access you want for your class, constructor, variables as well as methods. Access levels (Access Control) can be changed by using different access modifiers. There are three access modifiers but four access control. Default is the access control which will be set when one… Continue reading