by Dinesh Thakur Category: Data Type

We know in Class data members and Members Functions are Instantiated, When Object of Class is Created New Memory is Allocated by Each Object .So for Avoiding this New Memory Each Time Creation, We Uses Static Data then data will be Common to all and the static data is used without creating an object of class Static data is used without creating an object Instead with name of class .

 The Members those are declared as Static are Known as Static Members are associated with the class itself rather than individual objects Main Advantage of Static variables is java creates only one Copy of Static data Members  in Memory Like Data Members Methods May also be Static and they Called without object of class.


About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.