When we run two or more programs concurrently, it is called?
Predict the output of the following Java code.
Which of the following is not an inheritance mapping strategy?
Which three form part of correct array declarations?
What are generic methods?
Predict the output of the following Java code.
class Abekus {
private int i;
private Abekus() {
i = 76;
}
}
public class Abekus1 {
public static void main(String[] args) {
Abekus A = new Abekus();
System.out.println(A.i);
}
}
//Predict the output
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
StringBuilder str = new StringBuilder("Electronic");
int unicode = str.codePointBefore(4);
System.out.println(" "+ unicode);
}
}
Predict the output of the following Java code:
class Abekus {
public static void main(String args[])
{
StringBuffer s1 = new StringBuffer("Welcome to");
StringBuffer s2 = new StringBuffer(" Abekus");
s1.append(s2);
System.out.println(s1);
}
}
public class While
{
public void loop()
{
int x= 0;
while ( 1 ) /* Line 6 */
{
System.out.print("x plus one is " + (x + 1)); /* Line 8 */
}
}
}
Which statement is true?
Which statements about constructors in Java are true?