1. Which of the following is not a segment of memory in java?
2. Which of these method of FileReader class is used to read characters from a file?
3. Which of these methods is not a Locale class?
4. Which of these methods is used to know whether a given Character object is part of Java's Identifiers?
5. Which of the following is method of wrapper Integer for converting the value of an object into int?
6. Will this Java program generate same output is executed again?
class Output
{
public static void main(String args[])
{
int y = double z = Math.random();
System.out.print(y);
}
}
class Output
{
public static void main(String args[])
{
int y = double z = Math.random();
System.out.print(y);
}
}
7. Which of these keywords is used to define interfaces in Java?
8. Which of the following is an incorrect statement about packages?
9. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = "true false true";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
class Output
{
public static void main(String args[])
{
String str = "true false true";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
10. Which of these class is used to read characters in a file?
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.