InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is starvation? |
| Answer» | |
| 2. |
What is deadlock? |
| Answer» | |
| 3. |
How do you debug your application for issues when multiple threads are being executed? |
| Answer» | |
| 4. |
What is threadLocal variable? |
| Answer» | |
| 5. |
What are the methods of the thread class used to schedule the threads? |
| Answer» | |
| 6. |
Explain the method of Runnable interface with example. |
| Answer» | |
| 7. |
What are the advantages or usage of threads in Java? |
| Answer» | |
| 8. |
What happens if we invoke run method without calling the start method for a thread instance? |
| Answer» | |
| 9. |
What is difference between thread and process? |
| Answer» | |
| 10. |
What are the different states of a thread's lifecycle? |
| Answer» | |
| 11. |
Explain the method of Thread class with example. |
| Answer» | |
| 12. |
What is Thread leak? |
| Answer» | |
| 13. |
What is daemon thread and how it differs from user thread? |
| Answer» | |
| 14. |
What is volatile? |
| Answer» | |
| 15. |
What is thread synchronization? |
| Answer» | |
| 16. |
What is the difference between yielding and sleeping? |
| Answer» | |
| 17. |
What the difference is between notify and notify All methods? |
| Answer» | |
| 18. |
Can you tell some ways in which a thread can enter the waiting state? |
| Answer» | |
| 19. |
What is a Thread? |
| Answer» | |
| 20. |
What is the priority for Garbage collector thread? |
| Answer» | |
| 21. |
Name the four states associated in the thread. |
| Answer» | |
| 22. |
How many threads at a time can access a monitor? |
| Answer» | |
| 23. |
Name the default thread at the time of starting the program. |
| Answer» | |
| 24. |
Name the method for setting the priority. |
| Answer» | |
| 25. |
Provide the values for max-priority, min-priority and normal-priority level. |
| Answer» | |
| 26. |
Data type for the parameter of the sleep() method is ____________ |
| Answer» | |
| 27. |
Name the mechanism defined by java for the Resources to be used by only one Thread at a time. |
| Answer» | |
| 28. |
Name the methods used for Inter Thread communication. |
| Answer» | |
| 29. |
Write the signature of the constructor of a thread class. |
| Answer» | |
| 30. |
Name the methods available in the Thread class. |
| Answer» | |
| 31. |
Name the methods available in the Runnable Interface. |
| Answer» | |
| 32. |
What is timeslicing? |
| Answer» | |
| 33. |
Name the ways to create the thread. |
| Answer» | |
| 34. |
Process and Thread |
| Answer» | |
| 35. |
What are the two types of multitasking? |
| Answer» | |
| 36. |
Briefly explain daemon thread. |
| Answer» | |
| 37. |
Preemptive scheduling vs. time slicing. |
| Answer» | |
| 38. |
What is Shift() method in Javascript? |
| Answer» | |
| 39. |
What is escape() function? |
| Answer» | |
| 40. |
How to change style on an element? |
| Answer» | |
| 41. |
How to manage exception handling in Javascript? |
| Answer» | |
| 42. |
What is the difference between window.onload and onDocumentReady? |
| Answer» | |
| 43. |
What is decodeURI() function? |
| Answer» | |
| 44. |
What is Strict Mode in JavaScript? |
| Answer» | |
| 45. |
Explain JavaScript closures by example. |
| Answer» | |
| 46. |
What is Push() method in JavaScript? |
| Answer» | |
| 47. |
What is the disadvantages using innerHTML in JavaScript? |
| Answer» | |
| 48. |
How to get height and width of different browser in Javascript? |
| Answer» | |
| 49. |
What is unescape() function? |
| Answer» | |
| 50. |
What is unshift() method in Javascript? |
| Answer» | |