Searching for "I"

Q:

public abstract class Shape {

private int x;

private int y;

public abstract void draw();

public void setAnchor(int x, int y) {

this.x = x;

this.y = y;

}

}

Which two classes use the Shape class correctly?

A) public class Circle implements Shape { private int radius; B) public abstract class Circle extends Shape { private int radius; }
C) public class Circle extends Shape { private int radius; public void draw(); D) None
 
Answer & Explanation Answer: B) public abstract class Circle extends Shape { private int radius; }

Explanation:

Only B is true

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

'Asian Drama ', by Gunnar Karl Myrdal, is a book on which of the following subjects

A) Theatre Movements in Asia B) Economics
C) International Politics D) Look East Policy of India
 
Answer & Explanation Answer: B) Economics

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

Panchatantra has been written by

A) Kalidas B) Surdas
C) Vishakhadatta D) Vishnu Sharma
 
Answer & Explanation Answer: D) Vishnu Sharma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

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:

The noval ' Post office ' was written by

A) Rabindranath Tagore B) K.M. Munshil
C) R.D.Dinkar D) Neeraj
 
Answer & Explanation Answer: A) Rabindranath Tagore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

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 book ' Around the World in Eighty Days ' was written by

A) Charles Dickens B) H.M.Munro
C) Jules Verne D) Sir Richard Burton
 
Answer & Explanation Answer: C) Jules Verne

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors