What will be the output of the following Java code?
public class Test { }
Which of these is not a mocking framework?
Which Java class is used to encapsulate IP address and DNS?
Which of the following is not a feature of Java?
Which of the following operator is used to invert all the digits in a binary representation of a number?
class test {
public static void main (String[] args) {
String s1="Hello";
String s2="Hello";
System.out.println((s1==s2)+" "+(s1.equals(s2)));
}
}
What is the output of the following Java program?
public class Abekus {
int i = 10;
public static void main(String[] args) {
Abekus o;
System.out.println(o.i);
}
}
Predict the output of the following Java code:
class Abekus {
public static void main(String[] args)
{
int i = 0, j = 11;
do {
i++;
if (j-- < i) {
break;
}
} while (i < 5);
System.out.println(i + " " + j);
}
}
What will be the output of -
class Abc
{
int a;
int b;
boolean isEqual()
{
return(a == b);
}
}
class Output
{
public static void main(String args[])
{
Abc abc = new Abc();
abc.a = 5;
abc.b = 6;
System.out.println(abc.isEqual());
}
}