logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • void waitForSignal() { Object obj = new Object(); synchronized (Thread.currentThread()) { obj.wait(); obj.notify(); } } Which statement is true?


  • Options
  • A. This code can throw an InterruptedException.
  • B. This code can throw an IllegalMonitorStateException.
  • C. This code can throw a TimeoutException after ten minutes
  • D. All the above

  • Correct Answer
  • This code can throw an IllegalMonitorStateException. 

    Explanation

    It will throw  IllegalMonitorStateException.

  • Tags: IT Trainer

    Technology problems


    Search Results


    • 1. Which containers use a border Layout as their default layout ?
    • Discuss
    • 2. Can you give few examples of final classes defined in Java API?
    • Discuss
    • 3. What is SQL*Plus? Explain its features
    • Discuss
    • 4. What is the difference between dao,rdo and ado explain simply ?
    • Discuss
    • 5. What is the difference between Listview and Treeview?
    • Discuss
    • 6. Which of these class have only one field 'TYPE' ?

    • Options
    • A. Run time
    • B. Process
    • C. Void
    • D. System
    • Discuss
    • 7. Which of the following attribute can hold the JavaScript version?

    • Options
    • A. script
    • B. version
    • C. language
    • D. none of the above
    • Discuss
    • 8. Which JSON framework is supported by iOS?
    • Discuss
    • 9. What is the security aspects provided with cloud?
    • Discuss
    • 10. find all Employee records containing the word "Joe", regardless of whether it was stored as JOE, Joe, or joe.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment