Why Wait and notify are kept in Object class although they
are used only with Thread Class
Answer Posted / chandrasekhar
wait(),notify() are worked on the objects to control the
multiple thereads,not on theread.Hence these methods are
difined object class.
| Is This Answer Correct ? | 14 Yes | 8 No |
Post New Answer View All Answers
how does multithreading take place on a computer with a single cpu? : Java thread
What is the arraylist in java?
What sorting algorithm does javascript use?
What does it mean that a method or field is “static”?
Explain the difference between abstraction and encapsulation.
What is the hashcode () and equals () used for?
What is java thread dump, how can we get java thread dump of a program?
Why we use methods in java?
How are observer and observable used in java programming?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
Where are the card layouts used?
What is integer valueof?
What is the simpletimezone class in java programming?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is a ternary operator in java?