String stored in Heap memory
In java all class variable are instance variable
Which keyword is used for inheriting a class?
In which extension in Hibernate is used to store database table configuration?
Deduce the output of the following code:
public class Test{
public static void main(String []args){
int x=4;
System.out.println(x++);
}
}
public class j{
public static void main(String args[]){
StringBuilder sb= new StringBuilder("StringBuilder is mutable");
System.out.println(sb.size());
}
}
What is the output of the following Java code?
public class loop
{
public static void main(String[] args)
{
int a=5, b;
for(b=0; b<=a; b++);
{
System.out.print(b);
}
}
}
What is the output of the following Java code?
import java.util.*;
public class Abekus {
public static void main(String[] args)
{
int[] i = new int[5];
System.out.println(i[2]);
}
}
Why are generics used in programming?