All java classes are derived from
What is the superclass of all errors and exceptions in Java?
What does an interface contain?
Which of the following methods in the Byte wrapper class returns the value as a double?
Which of these method of Thread class is used to find out the priority given to a thread?
How many times 'abekus' is printed?
public class abekus
{
public static void main(String[] args) {
for(int i = 0; i<5; i++);
{
System.out.println("abekus");
}
}
}
//Predict the output
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
String s1 = "Hi fi";
boolean s2 = s1.startsWith("Hifi");
System.out.println(s2);
}
}
What is the output of the following Java code?
import java.util.*;
import java.util.stream.IntStream;
class Abekus {
public static void main(String[] args) {
IntStream i = IntStream.empty();
boolean j = i.allMatch(n -> true);
System.out.println(j);
}
}
Predict the output of the following Java code:
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
String s1= "I am internet";
String s2 = new String(s1);
System.out.println(s1.equals(s2));
}
}
Predict the output of the following Java code.
class Abekus {
public static void main(String args[]) {
try {
int i = 78 / 25;
System.out.println(i);
}
catch(Exception e) {
System.out.println("Exception Caught");
}
finally
{
System.out.println("finally");
}
}
}