This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
prabhakar, static variables and methods belong to the class as a whole, whereas non-static variables and methods belong to specific objects created from that class. i.e. All objects created from a class share the exact same static methods and variables. HTH, -Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
"prabhakar p", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements. Thanks.