Originally posted by patil manoj: Would the caller be given separate instance to that method? or it will wait for getting freed(synchronize)?
There is only one "copy" of both static and regular methods. These are kept in a method area near the classfile - separate from the objects on the heap. An object needs to know it's "type" so that it can locate the method area and find the method that it is to execute. It is the same for static methods. There is just one "copy" in the method area. If the static method is called more than once at the same time, each caller executes the commands separately and concurrantly in whatever threads they were called from. There is no synchronization unless that is explicitely stated in the code. They just take turns reading the methods commands starting from where they left off last time they had a chance at some scheduler time.
"JavaRanch, where the deer and the Certified play" - David O'Meara