Line NumberReader is a subtype of Buffered reader
What is the default value of priority value MIN_PRIORITY in java.
What type of methods does an interface contain by default?
What will be the output of the following Java code?
Which of the following are Java reserved words?
spliterator() : This method Creates a dynamic-binding and fail-fast Spliterator over the elements in this list.
What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
Find the output of the following code:
public class Test {
int x=20;
public static void main(String[] args) {
Test myObj = new Test();
int x = 40;
System.out.println(myObj.x);
}
}
Statement 1-main() given parameter via command-line arguments
Statement 2-recursive() method given parameter via command line-arguments
Predict the output of the following Java code:
import java.io.*;
class Abekus {
public static void main(String[] args)
{
int i = 5, j = 25, result;
result = i <= j ? i * j : j / i;
System.out.println(result);
}
}