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]); } }
Which of the following best describes JavaScript?
Which of the following statements are equal for a variable declared in the interface ?
1. int X=102. public int X=103. public static final int X=10
How many of the following will follow JavaBean Listener naming rules?
addListener
addMouseListener
deleteMouseListener
removeMouseListener
registerMouseListener
X implements Y, Z
Arguments:
1. X should be class2. Y, Z should be interfaces
Which of these class have only one field 'TYPE' ?
Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Postfix notations.
Inside an interface when should the variables be initialized?
Which of the following method declarations are allowed inside interface?
Which of the following are valied?
try { int x = Integer.parseInt("two"); }
Which could be used to create an appropriate catch block?
Which of the following is not a keyword?
class Hell {
public static void main(String[] args) {
Integer i = 42;
String s = (i<40)?"life":(i>50)?"base":"ball";
System.out.println(s);
}
Javascript is interpreted by
What is the string contained in s after following lines of code?
StringBuffer s = new StringBuffer(“Hello”); s.deleteCharAt(0); ?
public class Threads2 implements Runnable {
public void run() {
System.out.println("run.");
throw new RuntimeException("Problem");
Which among the following is true?
Thread t = new Thread(new Threads2());
t.start();
System.out.println("End of method.");
Please disable the adBlock and continue. Thank you.