Select an option to see the answer and solution.
Data Types and Variables
practice.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
127
Questions
4/7
Page
Pick an option on a question to see the right answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Options are not available for this question.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
byte b = 50;
b = b * 50;Select an option to see the answer and solution.
Select an option to see the answer and solution.
class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
class dynamic_initialization
{
public static void main(String args[])
{
double a, b;
a = 3.0;
b = 4.0;
double c = Math.sqrt(a * a + b * b);
System.out.println(c);
}
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
public class prototype { }Select an option to see the answer and solution.
class main_arguments
{
public static void main(String [] args)
{
String [][] argument = new String[2][2];
int x;
argument[0] = args;
x = argument[0].length;
for (int y = 0; y < x; y++)
System.out.print(" " + argument[0][y]);
}
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
class A
{
final public int calculate(int a, int b) { return 1; }
}
class B extends A
{
public int calculate(int a, int b) { return 2; }
}
public class output
{
public static void main(String args[])
{
B object = new B();
System.out.print("b is " + b.calculate(0, 1));
}
}Select an option to see the answer and solution.
enum Levels
{
private TOP,
public MEDIUM,
protected BOTTOM;
}Select an option to see the answer and solution.
Select an option to see the answer and solution.