we can have more than one package statements in the source file.
Which attribute is used to specify the initialization method?
Every thread in java has priorities in between 1 to __ and the default priority is __.
Those interface having only one method called
Which of these classes is not related to input and output streams in terms of functioning?
What will be the output of the following Java code?
public class Abekus {
public static void main(String[] args) {
int arr[] = new int [5];
System.out.print(arr);
}
}
// Predict the output
class Test {
public static void main(String[] args)
{
int j = 0;
do
{
for (int i = 0; i++ < 1;)
System.out.println(i);
} while (j++ < 3);
}
}
Which of the following methods cannot directly cause a thread to stop executing?
What is the output of the following Java code?
public class Abekus {
public static void main(String[] args) {
int j = 20;
for (System.out.println("Hi, "); ; j++) {
System.out.println("Programmer");
}
}
}
Select the correct option for the following code.
import java.util.LinkedList;
class Abekus {
public void Display()
{
LinkedList<String> l = new LinkedList<String>();
System.out.print(l.getFirst());
}
} public class Abekusmain {
public static void main(String[] args)
{
Abekus A = new Abekus();
A.Display();
}
}