getfirst() method is to return the first element
Which of the following is not a primitive data type in Java?
Which of the following is not a numeric literal?
Which of this method is implemented by Thread class?
What will be the output of the following Java code?
________ is also known as Runtime polymorphism and ________is also known as Compile time polymorphism.
Find the correct output.
public class abekus
{
public static int sum(int a, int b){
return a+b;
}
public static void main(String[] args) {
System.out.println(sum(sum(4,2),4));
}
}
Which of the following is incorrect
Statement 1 - Continue is used with the switch statement
Statement 2 - Exit is used with the switch statement
Statement 3 - break is used with the switch statement
what should be the output of this code block ?
public class aekus {
public static void main(String[] args) {
int[] array = {
1,
2,
3,
4,
5
};
for (int i = -1; i < 5; i++)
System.out.print(array[i]);
}
}