BufferedWriter is a type of charStreamReader
What is the output of the following Java code?
Dictionary class object uses the key to store value
Predict the output of the following Java code:
What does JSL stand for?
Which of the following annotations is used to avoid execution of JUnit tests?
class test{
public static void main (String[] args) {
byte x = 64;
int i;
byte y;
i = x << 2;
y = (byte) (x << 2);
System.out.print(i + " " + y);
}
}
How can we identify whether a compilation unit is a class or an interface from a .class file?
When a thread is executing a static synchronized method, no other thread can execute static synchronized method of class since lock is acquired on class.
But it can execute which following methods simultaneously?
Predict the output of the following Java code.
class AbekusParent
{
AbekusParent() { System.out.println("Abekus Parent class"); }
AbekusParent(int i) {
this();
System.out.println("Abekus Parent value = " + i);
}
}
public class AbekusChild extends AbekusParent
{
AbekusChild() { System.out.println("Abekus Child class"); }
AbekusChild(int i) {
this();
System.out.println("Abekus Child value = " + i);
}
public static void main(String[] args)
{
new AbekusChild(7);
}
}