Q.1.

Which of the following modifiers can be used with Local inner class?

Q.2.

Which kind of inheritance is not supported directly through classes in java?

Q.3.

Which is a reserved word in the java programming language?

Q.4.

Which king class properly represents the relationship "King has a best friend who is a Soldier"?

Q.5.

An algorithm written once which can be used in many places is called

Q.6.

Which key word is to be used to tell the JVM to skip the variable while performing the serialization process of the object containing it?

Q.7.

The keyword which indicates that a method can be accessed by only one thread at a time is

Q.8.

Which of the following is not used for commenting in java?

Q.9.

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?

Q.10.

Which of the following attribute can hold the JavaScript version?

Q.11.

A lock can be acquired on a class.

The above statement is

Q.12.

How many constructors can a class have?

Q.13.

Which method names follow the JavaBeans standard?

Q.14.

Which of the following statements about inheritance is false?

Q.15.

Exception handling is targeted at

Q.16.

Which is true?

Q.17.

Which of the following are incorrect form of StringBuffer class constructor  ?

Q.18.

void waitForSignal() {

Object obj = new Object();

synchronized (Thread.currentThread()) {

obj.wait();

obj.notify();

}

}

Which statement is true?

Q.19.

main() {

int i;

printf("%d",scanf("%d",&i)); // value 10 is given as input here

}

Q.20.

Which of the following are capabilities of functions in JavaScript?