dinesh Archive
LinkedList class extends AbstractSequentialList and implements List, Deque and Queue interface. It can be used as List, stack or Queue as it implements all the related interfaces. It can contain duplicate elements and is not …
The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed. Standard Java arrays are of a fixed length. After arrays are created, they cannot grow or …
Collections in java is a framework. It is are one of the most commonly reusable data structures. Collection framework provides many interfaces (Set, List, Queue, Deque etc.) and classes ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet …
There are some difference key notes i conclude after working on wait and sleep, first take a look on sample using wait() and sleep(): Example1: using wait() and sleep(): synchronized(HandObject) { while(isHandFree() == false) { …
Interrupting a thread means stopping what it is doing before it has completed its task, effectively aborting its current operation. Whether the thread dies, waits for new tasks, or goes on to the next step …
While the suspend( ), resume( ), and stop( ) methods defined by Thread class seem to be a perfectly reasonable and convenient approach to managing the execution of threads, they must not be used for …
Inter Thread Communication is one of the distinct facility in multi threading application development of java. Inter thread communication concept is one of the specialized form of inter process communication of operating system. In real …