ListIterator can be used only with List
Which of the following would equals() function return.
Who is responsible for calling the main method in Java?
Which access specifiers can be used for an interface?
Which of the following describes Java programs?
How is an object serialized in Java?
Which of the following is true about Java class structure?
What is the definition of a subclass in Java?
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
char a[] = {'a', '5', 'A', ' '};
System.out.print(Character.isDigit(a[0]) + " ");
System.out.print(Character.isWhitespace(a[3]) + " ");
System.out.print(Character.isUpperCase(a[2]));
}
}
What will be the output of the following code?
class A
{
int i;
int j;
A()
{
i = 1;
j = 2;
}
}
class Output
{
public static void main(String args[])
{
A obj1 = new A();
A obj2 = new A();
System.out.print(obj1.equals(obj2));
}
}