Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- what static keyword do in java and how to use it
- static classes
- ---
- you can not define static classes as general but subclasses can be static as a class member.
- static methods
- ---
- you can access static methods without any object and only with class reference.
- static methods can not be overriden.
- static variables
- ---
- you can access static variables without any object creation and only with class reference.
- static variables allocate static memory.
Add Comment
Please, Sign In to add comment