Collections.BinarySearch(datalist , "String");
String concatenation is implemented through the StringBuilder
What is the output of the following code?
Which file is used to define dependencies in Maven?
What does HCQL stand for?
Multiple inheritance means ?
what should be the output of this code block?
public class abekus {
public static void main(String[] args) {
String input = "the abekus";
input = input.replace("the", " ");
input = input.trim();
System.out.print(input.length());
}
}
Predict the output of the following Java code:
class Abekus {
int i = 10;
public static void main(String[] args)
{
Abekus a = new Abekus();
System.out.println(a.i);
}
static
{
int i = 20;
System.out.print(i + " ");
}
}
class Base {
public void show() {
System.out.println("Base::show() called");
}
}
class Derived extends Base {
public void show() {
System.out.println("Derived::show() called");
}
}
public class Main {
public static void main(String[] args) {
Base b = new Derived();;
b.show();
}
}
class human
{
int i;
double j;
}
class child extends human
{
int k;
}
class output
{
public static void main(String args[])
{
human i = new human();
child j = new child();
Class ref;
ref = j.getClass();
System.out.print(j.equals(i));
}
}