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

Instance Variable in Java Read More »

Java Reference Variable

Reference variables are used to refer to an object. They are declared with a specific type that cannot be changed. Types of reference variables Static Variable Instance Variable Method Parameter Local Variable

Java Static Keyword

What is Static Static is a Non Access Modifier. Applicable to The Static keyword can be applied to Method Variable Class nested within another Class Initialization Block

Scroll to Top