91. 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);
}
}
class Output
{
public static void main(String args[])
{
int a = Character.MIN_VALUE;
System.out.print((char)a);
}
}
92. Which of these class can encapsulate an entire executing program?
93. What will be the output of the following Java program?
import java.lang.System;
class Output
{
public static void main(String args[])
{
long start, end;
start = System.currentTimeMillis();
for (int i = 0; i < 10000000; i++);
end = System.currentTimeMillis();
System.out.print(end - start);
}
}
import java.lang.System;
class Output
{
public static void main(String args[])
{
long start, end;
start = System.currentTimeMillis();
for (int i = 0; i < 10000000; i++);
end = System.currentTimeMillis();
System.out.print(end - start);
}
}
94. Which class is used to generate random number?
95. Which of these class can be used to implement the input stream that uses a character array as the source?
96. Which of these is a process of converting a simple data type into a class?
97. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
double x = 3.14;
int y = (int) Math.toDegrees(x);
System.out.print(y);
}
}
class Output
{
public static void main(String args[])
{
double x = 3.14;
int y = (int) Math.toDegrees(x);
System.out.print(y);
}
}
98. Which of these method(s) is/are used for writing bytes to an outputstream?
99. Which of these exceptions will be thrown if we use null reference for an arithmetic operation?
100. Which of these is a super class of wrappers Long, Character & Integer?
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.