| |
GeekInterview.com > Interview Questions > J2EE > Core Java
| Print | |
Question: static data member
Answer: what is the use of static data member? |
| July 07, 2008 03:39:57 |
#3 |
| sudampanigrahy |
Member Since: July 2008 Total Comments: 1 |
Static data member |
PROPERTYS OF static KEYWORD:
The datamembers declared with static keyword is is treated as Constants, those values cannot be changed throughout the program... - As well for the static data members the memory is allocate in the seprate area called as "context" area.
- static datamemebrs are accessable without declering objects
- they can be accessable with the class name
eg: Student.roll_no; |
| |
Back To Question | |