21. Which of these class holds a collection of static methods and variables?
22. What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 1, b, 3, 0);
System.out.print(new String(a) + " " + new String(b));
}
}
class Output
{
public static void main(String args[])
{
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 1, b, 3, 0);
System.out.print(new String(a) + " " + new String(b));
}
}
23. Which of these class can generate pseudorandom numbers?
24. Which of these method returns a largest whole number less than or equal to variable X?
25. Which of these methods of a Thread class is used to suspend a thread for a period of time?
26. Which of these method of Object class can generate duplicate copy of the object on which it is called?
27. Which of these packages contain classes and interfaces used for input & output operations of a program?
28. Which of this interface is implemented by Thread class?
29. Which of these methods return a smallest whole number greater than or equal to variable X?
30. Which of these class is not a member class of java.io package?
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.