clear() method deletes all the elements from invoking collection
What is the exception thrown when java is out of memory?
What is false about constructors?
What will be the output of the following Java code?
public class abekus
{
public static void main(String[] args) {
String temp = "050";
int a = Integer.parseInt(temp);
System.out.println(a);
}
}
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Long i = new Long(256);
System.out.print(i.hashCode());
}
}
What is the output of the following Java code?
class Relational_operator
{
public static void main(String args[])
{
int var1 = 5;
int var2 = 6;
System.out.print(var1 > var2);
}
}
What is a just-in-time (JIT) compiler?
How can a protected class member be accessed?
abstract class itf
{
private int i,j;
public void result(int i,int j)
{
this.i=i;
this.j=j;
System.out.println(i+j);
}
}
public class test
{
public static void main(String args[])
{
itf obj= new itf();
obj.result(20,30);
}
}