31. Random is a final class?
32. Which of these method converts radians to degrees?
33. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
char a = (char) 98;
a = Character.toUpperCase(a);
System.out.print(a);
}
}
class Output
{
public static void main(String args[])
{
char a = (char) 98;
a = Character.toUpperCase(a);
System.out.print(a);
}
}
34. Which of these type parameters is used for a generic class to return and accept a number?
35. Which of the following package stores all the simple data types in java?
36. Which of the following methods is a method of wrapper Integer for obtaining hash code for the invoking object?
37. Which of these method return a pseudorandom number?
38. Which of these class have only one field?
39. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = "TRUE";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
class Output
{
public static void main(String args[])
{
String str = "TRUE";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
40. Which of these methods is used to obtain value of invoking object as a long?
Read More Section(Interfaces and Abstract Classes)
Each Section contains maximum 100 MCQs question on Interfaces and Abstract Classes. To get more questions visit other sections.