Searching for "u"

Q:

The largest southern most single Island in India is

A) Rameswaram Island B) Minicoy Island
C) Car Nicobar Island D) Great Nicobar Island
 
Answer & Explanation Answer: D) Great Nicobar Island

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

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:

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:

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:

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

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