Question
Which of the following is true?
1) wait(),notify(),notifyall() are defined as final & can be called only from with in a synchronized method
2) Among wait(),notify(),notifyall() the wait() method only throws IOException
3) wait(),notify(),notifyall() & sleep() are methods of object class

A. 1

B. 2

C. 3

D. 1 & 2

E. 1,2 & 3




More Java Questions..
Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

What is static synchronized method in JDBC API? Give an example?

Should we override finalize method

What is object cloning in Java?

What is difference between notify() and notfiyAll()

Describe java's security model.

Is there is any error if you have multiple main methods in the same class?

What is the name of the method used to schedule a thread for execution?

1) init();

2) start();

3) run();

4) resume();

5) sleep();

Can I import the same package/class twice? Will the JVM load the package twice at runtime?

What releases of Java technology are currently available? What do they contain?

What is asymmetric clustering in WebSphere?

What is pass by value and pass by reference?

What are the actions that can occur when a thread enters blocked state

How do I launch the browser using WebDriver

What is the use of Void(0)?

How does the native language C or C++ understand data types in JAVA



Search
Can you Answer!!
  • Q Do you have any special words of warning or encouragement as a result of your experience?
  • Q What is unattached folder in test plan?
  • Q Who were Balthazar, Melchior, and Gaspar?
  • Q How to create a new task and add it to the execution plan?
  • Q To call a Web service which transport protocol you can use?
  • Q What is do-178b level d?
  • Q Differentiate between reason and belief.
  • Q What is the interface of a class?
  • Q When do you use a like statement?
  • Q If I want to broadcast BATTERY_LOW action, should I use sendbroadcast() or sendstickybroadcast? Why?
  • Q The first matrimonial alliance with the Rajputs was established by Akbar with the house of-