What is synchronization? How it can be achieved?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
synchronization is the process of allowing only one thread
at a time.It's been achieved by marking the method as
synchronized or locking a particular portion of code
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / sainaveen
Synchronization is a mechanism used to control multiple
threads from accessing shared resources, if multiple
threads access shared resources there might be a chance for
one thread to change the shared values of another thread
leading to errors
| Is This Answer Correct ? | 6 Yes | 8 No |
There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....
What is the difference between Object and Instance?
Explain the difference between abstract classes and interfaces in java?
How can u increase the heap size in the memory?
What occurs when an object is constructed?
Which oo concept is achieved by using overloading and overriding?
How do you get length in java?
What is hashmap and map?
What is the difference between set and list?
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;
please send me hr interview questions in it industry
What is the point of java?