Posts in "Core Java"

Instance Variable in Java

An Instance variable in Java is used by Objects to store their states. Variables that are defined without the STATIC keyword and are Outside any method declaration are Object-specific and are known as instance variables. They are called so because their values are instance-specific and are not shared among instances. If a class has an instance variable,… Continue reading