remove() method used to remove an object from ArrayList
Predict the output of the following Java code.
How many types of association mapping are possible in Hibernate?
What will be the output of the following Java code?
Which of these classes is not part of Java’s collection framework?
What will this code print?
int a[] = new int[5];
System.out.print(a);
Predict the output of the following Java code:
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
StringBuffer s = new StringBuffer("gameworld");
s.deleteCharAt(7);
System.out.println(s);
}
}
Which of the following statements about inheritance in Java is true?
public class Outer
{
public void someOuterMethod()
{
//Line 5
}
public class Inner { }
public static void main(String[] argv)
{
Outer ot = new Outer();
//Line 10
}
}
Which of the following code fragments inserted, will allow to compile?
Predict the output of the following Java code.
class Abekus extends Exception { }
class Holidays {
public static void main(String args[]) {
String s="Bye";
try
{
throw new Abekus();
}
catch(Abekus a)
{
System.out.println("Abekus Exception : " + a );
}
finally {
System.out.println("After Execution of finally block : " + s);
}
}