-
What is the output of this program?
class equal
{
int p;
int q;
boolean isequal()
{
return(p == q);
}
}
public class Result
{
public static void main(String args[])
{
equal equ = new equal();
equ.p = 7;
equ.q = 5;
System.out.println(equ.isequal());
}
}
-
- false
- true
- true false
- false true
- None of these
Correct Option: A
Output: false