This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi Samer, Well, only one static variable will exist per class. With non-static variables you'll get one for every object created. The more objects you create, the more memory you use. Hope that helps. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform
Well, think in terms of Design time (compile time ) and run time. The memory is allocated at run time for non static variables. Same with methods aswell. If u declare a method1()( in class A) as static and want to use this method in another class B, you dont need to create new Instance of A, u can directly say A.method1(). Hope this helps Murali