Searching for "CH"

Q:

void waitForSignal() {

Object obj = new Object();

synchronized (Thread.currentThread()) {

obj.wait();

obj.notify();

}

}

Which statement is true?

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
 
Answer & Explanation Answer: B) This code can throw an IllegalMonitorStateException.

Explanation:

It will throw  IllegalMonitorStateException.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

Q:

Which of the books is written by Kapil Dev

A) One day Wonders B) Cricket - My Style
C) Twenty Years at the top D) Cricket-Favourite Game
 
Answer & Explanation Answer: B) Cricket - My Style

Explanation:

Which_of_the_books_is_written_by_Kapil_Dev1556278350.jpg image

 

Cricket - My Style is written by Kapil Dev.

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

Q:

public class Threads2 implements Runnable {

public void run() {

System.out.println("run.");

throw new RuntimeException("Problem");

Which among the following is true?

}

public static void main(String[] args) {

Thread t = new Thread(new Threads2());

t.start();

System.out.println("End of method.");

}

}

A) java.lang.RuntimeException: Problem B) run. java.lang.RuntimeException: Problem
C) End of method. java.lang.RuntimeException: Problem D) End of method. run. java.lang.RuntimeException: Problem
 
Answer & Explanation Answer: D) End of method. run. java.lang.RuntimeException: Problem

Explanation:

Only D can be true

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

The quotation ' Some of born great , Some achieve greatness, and some have greatness, thrust upon them ' is atributed to

A) Bertrand Russell B) Abraham Lincoln
C) William Shakeshpare D) George Orwell
 
Answer & Explanation Answer: C) William Shakeshpare

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

Which one of the following is not an award given on the National Awards Day

A) Rajiv Khel Ratna B) Arjun Award
C) Dhyanchand Award D) Vishwamitra Award
 
Answer & Explanation Answer: D) Vishwamitra Award

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

Which of the following is not written by Munshi Premchand

A) Gaban B) Godan
C) Manasorovar D) Guide
 
Answer & Explanation Answer: D) Guide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

' Neela Charid ' which won the vyas Samman in 1992 is written by

A) Subhash Mukhopadhyay B) VS. Naipaul
C) Ram Vilas Sharma D) Shiv Prasad Singh
 
Answer & Explanation Answer: D) Shiv Prasad Singh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

' In CUstody ' , an english novels, is written by which one of the following

A) Vikram Seth B) Shoba De
C) Anita Desai D) VS.Naipaul
 
Answer & Explanation Answer: C) Anita Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors