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 basic syntax?
why would you use a synchronized block vs. Synchronized method? : Java thread
How will you add panel to a frame?
what is difference between front controller and action servlet?
Explain the difference between static and dynamic binding in java?
How to optimize the javac output?
How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...?
What data type is a string?
When will you define a method as static in Java?
0 Answers SwanSoft Technologies,
What is lambda expression in java?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
What is a line break example?