1.

What is the output of this program?

public class main_class_Example
{
public static void main(String args[])
{
int p = 10;
if (p == 10)
{
// int p = 20;
int q = 20;
System.out.println(q);
}
}
}

A. 10
B. 20
C. 11
D. 21
E. 25
Answer» C. 11


Discussion

No Comment Found

Related MCQs