BufferedReader is used to read line by line
java.lang.reflect package is used for analyzing code during run-time
Which of these is the superclass of the wrapper classes Double and Integer?
Which of these instances cannot be created?
Which exception handles the situations when an illegal argument is used to invoke a method?
Which of these is true about args in the following code?
public static void main(String args[])
What is the output of the following Java code?
class Abekus {
public static void main(String[] args)
{
int A[] = new int[10];
System.out.print(A.length);
}
}
Predict the output of the following Java code:
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.*;
class Abekus {
static CopyOnWriteArrayList c = new CopyOnWriteArrayList();
public static void main(String[] args) {
c.add(32);
c.add(62);
c.add(94);
c.add(57);
System.out.println(c.get(4));
}
}
//Predict the output
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
String str = "Program";
String str1 = "Program";
if (str.startsWith("P"))
System.out.println("Start Same");
if (str.endsWith("a"))
System.out.println("End Same");
}
}
Sun defined standard naming conventions for packages.
Select the wrong convention?