Q101
Open questionSelect an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
309
Questions
6/16
Page
Pick an option on a question to see the right answer and solution.
Q101
Open questionSelect an option to see the answer and solution.
Q102
Open questionSelect an option to see the answer and solution.
Q103
Open questionSelect an option to see the answer and solution.
Q104
Open questionSelect an option to see the answer and solution.
Q105
Open questionSelect an option to see the answer and solution.
Q106
Open questionclass Output
{
public static void main(String args[])
{
int y = double z = Math.random();
System.out.print(y);
}
}Select an option to see the answer and solution.
Q107
Open questionSelect an option to see the answer and solution.
Q108
Open questionSelect an option to see the answer and solution.
Q109
Open questionclass Output
{
public static void main(String args[])
{
String str = "true false true";
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}Select an option to see the answer and solution.
Q110
Open questionSelect an option to see the answer and solution.
Q111
Open questionSelect an option to see the answer and solution.
Q112
Open questionSelect an option to see the answer and solution.
Q113
Open questionclass newthread implements Runnable
{
Thread t;
newthread()
{
t = new Thread(this,"My Thread");
t.start();
}
public void run()
{
System.out.println(t);
}
}
class multithreaded_programing
{
public static void main(String args[])
{
new newthread();
}
}Select an option to see the answer and solution.
Q114
Open questionclass newthread implements Runnable
{
Thread t;
newthread()
{
t = new Thread(this,"My Thread");
t.start();
}
}
class multithreaded_programing
{
public static void main(String args[])
{
new newthread();
}
}Select an option to see the answer and solution.
Q115
Open questionclass 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));
}
}Select an option to see the answer and solution.
Q116
Open questionSelect an option to see the answer and solution.
Q117
Open questionSelect an option to see the answer and solution.
Q118
Open questionclass Output
{
public static void main(String args[])
{
Integer i = new Integer(257);
byte x = i.byteValue();
System.out.print(x);
}
}Select an option to see the answer and solution.
Q119
Open questionSelect an option to see the answer and solution.
Q120
Open questionSelect an option to see the answer and solution.