what is the output???????
public class multireturn
{
public(int assign x ( int x)
{
if(4==x)
{
return 7;
}
else if (7=x+3)
{
return 6;
}
return 5;
}
}
Answer Posted / guest
7 or 5 depending on value of x but never 6
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are advantages and disadvantages of OOPs?
Is string pool garbage collected?
How does thread synchronization occurs inside a monitor?
What is object english?
What is the largest data type in java?
What is a package in java? List down various advantages of packages.
How listener identify that the event came from a particular object?
What is difference between variable declaration and definition?
What are keywords and reserved words in java?
Can we declare main () method as non static?
What are the access modifiers available in java?
Explain different ways of creating a thread?
Is a class an object?
What does split function do in java?
Explain about exception propagation?