Java Reserved Keywords with Uses
Data Types
• int – integer values
• float – decimal (single precision)
• double – double precision decimal
• char – single character
• boolean – true/false values
• byte – small integer
• short – short integer
• long – large integer
Access Modifiers
• public – accessible everywhere
• private – within class only
• protected – within package + subclass
Class & Object
• class – define class
• interface – define interface
• extends – inheritance
• implements – implement interface
• new – create object
Control Flow
• if, else – conditions
• switch, case, default – multiple selection
• for, while, do – loops
• break – exit loop
• continue – skip iteration
• return – exit method
Exception Handling
• try – test block
• catch – handle exception
• finally – always executes
• throw – throw exception
• throws – declare exception
OOP Concepts
• this – current object
• super – parent class
• instanceof – check object type
• abstract – abstract class/method
• final – constant/prevent override
Others
• static – shared variable
• void – no return
• synchronized – thread control
• volatile – memory consistency
• package – define package
• import – import classes
• enum – enumeration
• assert – debugging
• transient – skip serialization
• native – non-java code
• strictfp – floating precision
• goto, const – reserved unused