Predict the output of the following Java code.
Predict the output of the following Java code that uses a ConcurrentLinkedDeque
.
Which of this class is used to read and write bytes in a file?
Which one of the Java API does not support threads?
Which of these are integer constants defined in the TextEvent class?
Which of the following methods are from the Object class?
Which of the following statements about Java applets is correct?
public class test
{
public static void main(String[] args)
{
int[][][] x={{{10,20,30},{40,50,60}},{{70,80},{90,100,110}}};
System.out.println(x[1][2][0]);
}
}
class GFG {
public static void main (String[] args) {
boolean a=!true;
boolean b=!a;
boolean c=!!a&!b;
boolean d=!(!c^!!b);
System.out.println(c+" "+!d);
}
}
What happens if the constructor of a class A is made private?