Set are generally based on Indexing
Select the valid keyword in Java.
Which of the following is not an operator in Java?
Which Java package is used for invoking a method remotely?
What does the Java compiler translate source code into?
To save the state of an object to persistent state we use?
If thread scheduler allocates CPU time, then the thread will be in _______ state.
What is used to inject mock fields into the tested object automatically?
The valid declaration for a boolean variable is
Predict the output of the following Java code:
public class Abekus1 {
private int i = 25;
public static void main(String[] args) {
Abekus1 A1 = new Abekus1();
Abekus1.Abekus2 A2 = A1.new Abekus2();
System.out.printf("%d", A1.method());
A2.main(args);
}
private int method() {
return i;
}
class Abekus2 {
private int i = 65;
private int method() {
return i;
}
public void main(String[] args) {
Abekus2 A2 = new Abekus2();
System.out.println(A2.method());
}
}
}