why are wait(), notify() and notifyall() methods defined in the object class? : Java thread


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How to solve the problem of generating the unique hash keys with hash function?

0 Answers  


What is proper subset?

0 Answers  


Which variables are stored in stack?

0 Answers  


What is natural ordering in java?

0 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


Can we extend private class in java?

0 Answers  


How do you ensure that n threads can access n resources without deadlock?

0 Answers  


What is jar?

0 Answers  


What are the methods to rectify ambiguities in the interfaces in JAVA?

0 Answers   CGI,


Define interface?

3 Answers   MindCracker,


How we can skip finally block of exception even if some exception occurs in the exception block in java?

0 Answers  


public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  


Categories