Category Core Java

Java developers must know..

Java Virtual Mechine. How it works? First jvm looks for main method in class.if exists then it will start executing from that Inside the Java virtual machine, threads come in two flavors: daemon and non- daemon. A daemon thread is…

Variables in Java

In Java, objects store their states in variables. These variables are used as containers to hold values (int, long, string…) during the life cycle of an application.

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…

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…

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.…

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…