a) VxWorks b) QNX c) Palm OS d) RTLinux Answer: c Explanation: VxWorks, QNX & ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String x = Boolean.toString(false);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = “true false”;
boolean x = Boolean.parseBoolean(str);
System.out.print(x);
}
}
What will be the output of the following Java program? class Output ...
View Question
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);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class X
{
int a;
double b;
}
class Y extends X
{
int c;
}
class Output
{
public static void main(String args[])
{
X a = new X();
Y b = new Y();
Class obj;
obj = b.getClass();
System.out.print(obj.isInstance(a));
}
}
What will be the output of the following Java program? class X ...
View Question
What will be the output of the following Java program?
class X
{
int a;
double b;
}
class Y extends X
{
int c;
}
class Output
{
public static void main(String args[])
{
X a = new X();
Y b = new Y();
Class obj;
obj = b.getClass();
System.out.print(b.equals(a));
}
}
What will be the output of the following Java program? class X ...
View Question
What will be the output of the following Java program?
class X
{
int a;
double b;
}
class Y extends X
{
int c;
}
class Output
{
public static void main(String args[])
{
X a = new X();
Y b = new Y();
Class obj;
obj = b.getClass();
System.out.print(obj.getSuperclass());
}
}
What will be the output of the following Java program? class X ...
View QuestionWhich of these Exceptions is thrown by loadClass() method of ClassLoader class?
a) IOException b) SystemException c) ClassFormatError d) ClassNotFoundException Answer: d Explanation: ClassNotFoundException
View QuestionWhich of these methods returns the total number of bytes of memory available to the program?
a) getMemory() b) TotalMemory() c) SystemMemory() d) getProcessMemory() Answer: b Explanation: TotalMemory() returns the total number of bytes available ...
View QuestionWhich of the following exceptions is thrown by every method of Runtime class?
a) IOException b) SystemException c) SecurityException d) RuntimeException Answer: c Explanation: Every method of Runtime class throws SecurityException.
View Question