Stack is an Interface
Arrays always store in Sequential memory location
delete() method deletes all the elements from invoking collection
What is an ORM stands for?
Which method is used to create a directory with file attributes?
When one of the operands in an expression is a real number and the other is an integer, the expression is called:
What will be the output of the following Java code?
class Abekus {
public static void main(String[] args) {
int j = 1;
do {
for (int i = 1; i++ < 2;)
System.out.println(i);
} while (j++ < 3);
}
}
What will be the output of the following Java code?
class Output
{
public static void main(String[] args)
{
String a = "hello i love java";
System.out.println(a.indexOf('i') + " " + a.indexOf('o') + " " + a.lastIndexOf('i') + " " + a.lastIndexOf('o'));
}
}
Which of the following is true about interfaces in Java?
What will be the output of the program?
public class X
{
public static void main(String [] args)
{
try
{
badMethod();
System.out.print("A");
}
catch (Exception ex)
{
System.out.print("B");
}
finally
{
System.out.print("C");
}
System.out.print("D");
}
public static void badMethod() {}
}