What is the difference between the synchronized() & static
synchronized()?
Answers were Sorted based on User's Feedback
Answer / namrata
when a Thread enters a static synchronized method of a
given class, then no other Thread can enter another static
synchronized method of that class. But other threads might
execute any non-synchronized method, or a synchronized
instance method.
Is This Answer Correct ? | 6 Yes | 3 No |
What is qualitative variable?
Can we access instance variables within static methods ?
What are the two basic ways in which classes that can be run as threads may be defined?
diff b/w sleep(1000) and wait(1000)?
what is Vector class?
Discuss different types of errors that generally occur while programming.
Is vector thread safe in java?
Are generics important java?
Is java a super set of javascript?
What is methods in java?
What is final int?
What is difference between core java and java ee?