Variable Types in Java
In Java, there are three distinct types of variables. Understanding where they are declared and their scope is crucial for memory management.
Local Variables
Instance Variables
Static Variables
Complete List of Java Keywords
Note: assert was added in 1.4, enum in 1.5.
abstractbooleanbreakbytecasecatchcharclassconstcontinuedefaultdodoubleelseextendsfinalfinallyfloatforgotoifimplementsimportinstanceofintinterfacelongnativenewpackageprivateprotectedpublicreturnshortstaticstrictfpsuperswitchsynchronizedthisthrowthrowstransienttryvoidvolatilewhileassertenum