Q.1.

What is the output of this program ?

class main_arguments {
            public static void main(String [ ] args)
            {
                String [][] argument = new String[2][2];
                int x;
                argument[0] = args;
                x = argument[0].length;
                for (int y = 0; y < x; y++)
                    System.out.print(" " + argument[0][y]);           
            }
        }

Q.2.

Which of the following best describes JavaScript?

Q.3.

Which of the following statements are equal for a variable declared in the interface ?

1. int X=10
2. public int X=10
3. public static final int X=10

Q.4.

How many of the following will follow JavaBean Listener naming rules?

addListener

addMouseListener

deleteMouseListener

removeMouseListener

registerMouseListener

 

Q.5.

X implements Y, Z

Arguments:

1. X should be class
2. Y, Z should be interfaces

Q.6.

Which of these class have only one field 'TYPE' ?

Q.7.

Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent  Postfix notations.

Q.8.

Inside an interface when should the variables be initialized?

Q.9.

Which of the following method declarations are allowed inside interface?

Q.10.

Which of the following are valied?

Q.11.

try { int x = Integer.parseInt("two"); }

Which could be used to create an appropriate catch block?

Q.12.

Which of the following is not a keyword?

Q.13.

class Hell {

public static void main(String[] args) {

Integer i = 42;

String s = (i<40)?"life":(i>50)?"base":"ball";

System.out.println(s);

}

}

Q.14.

Javascript is interpreted by

Q.15.

 What is the string contained in s after following lines of code?

StringBuffer s = new StringBuffer(“Hello”); s.deleteCharAt(0);  ?

Q.16.

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.");

}

}