a priority queue is not thread-safe
ProcessBuilder uses to create a new process
What is the scope of response object?
What is the default priority of the thread in the following Java program?
Hiding the complexity in program is known as
Which tool from the Java Development Kit can be used to test applets?
public class output{
public static void main(String args[]){
int a=1000;
int b=1200;
int result=0;
result= 2*(++a);
System.out.println(result);
}
}
Which access specifier can be used for a class so that its members can be accessed by a different class in the same package?
import java.util.*;
class output
{
public static void main(String args[])
{
Stack obj = new Stack();
obj.push("A");
obj.push("B");
obj.push("C");
obj.push("E");
obj.pop();
obj.push("D");
System.out.println(obj.peek());
}
}
Predict the output of the following Java code:
public class Abekus {
public static void main(String[] args) throws InterruptedException
{
Abekus A = new Abekus();
A = null;
System.gc();
Thread.sleep(500);
System.out.println("Main()");
}
protected void finalize() {
int i=0, j=77;
System.out.println("Finalize()");
System.out.println(j/i);
}
}