We can write any code after throw statement?
There is no operator overloading in java. True or False?
N parameters are used for a generic method to return and accept a number
try is used for the block to handle the exceptions generated by a try block
Which method of StringBuffer class is used to find the length of string?
Which class is used to create servers that listen for either local or remote client programs?
Select the correct output for the following Java program.
What will be the output of the following Java code?
class binary
{
public static void main(String args[])
{
int num = 19;
System.out.print(Integer.toBinaryString(num));
}
}
Which of the following statements about the switch statement is incorrect?
Predict the output of the following Java code.
class Abekus {
public static void main(String args[])
{
String s1 = "Amrit Anand";
String s2 = "Abekus Abekus";
System.out.print(s1.indexOf("r") + " ");
System.out.print(s1.indexOf("A") + " ");
System.out.print(s2.lastIndexOf("e") + " ");
System.out.print(s2.lastIndexOf("s"));
}
}