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.
what can be static??? classes??? methods??? variables???what happens inside JVM when I have an class whith some static code, and then I create 2 objects with this class. If I try to access a static method which is not synchronized and try to access a non-static method Which is not synchronized using those 2 objects simultaneously. The jvm treats static and non-static methods equally??? The execution of method main, causes a thread. The most important thread. Which is not daemon. Is this true???
A method can be static. A variable can be static. Static variables are shared by all users of the class. Static methods are simply methods that can be executed without instantiating the class they are in.
a static variable can't be a reference variable, and a static method can be easily accessed without creating an instance of the class where that method lies. [ December 14, 2002: Message edited by: Melliholic Michael ]