There are 3 types of variables in JAVA.
- Local Variables - This is used inside method for temporary purpose.
- Instance Class Variables - copy of this variable is created separately for each object.
- Static Class Variables - there is single copy of this variable for all objects.
No comments:
Post a Comment