Abstract Map implement Map
Which of the following is mutable?
Which method of the String class is used to extract a substring from a String object?
class test{
public static void main (String[] args) {
int x=3;
int y=~x;
int z;
z=x>y?~y:y;
System.out.println(z);
}
}
The shutdown hook is a thread -
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
int a = Character.MIN_VALUE;
System.out.print((char)a);
}
}
What is the value returned by the compareTo()
method if the invoking string is lexicographically less than the string being compared?
What will be the output of the following Java program?
public class Test
{
public static void main (String args[])
{
String str = null;
System.out.println(str);
}
}
Choose the correct option for the given code segment.
public interface Abekus
{
public int Abekusmethod(); // line 1
public interface Abekus2 // line 2
{
public void Abekusmethod1(); // line 3
}
}