What is the difference between Synchronizing mehtod &
Synchronizing block?
Answer Posted / anjani kumar jha
In syncronizing block the object is locked.
In Syncronozing the method the method is
locked........means only one at a time only one thread can
use that method.
Thanks and Regards
Anjani Kumar Jha
9623154095
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What do you mean by chromounits in java8?
What are different access specifiers in java?
What is function and method in java?
what is mena by object block any what is the use of that
What is java ceil?
Explain the reason behind ending a program with a system.exit(0)?
What is the reflection?
What is locale?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What is unmodifiable collection in java?
Explain throw keyword in java?
How can you set the applet size?
Can we return null in java?
Why should I use abstract class?
Explain the use of shift operator in java. Can you give some examples?