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 is ststic with example
How can you add and remove nodes in jtree?
Which programming language is best in future?
What is the purpose of using the java bean?
Explain the difference between static and dynamic binding in java?
What is string pool in java?
What is deserialization?
What is the reflection?
How do you clear a list in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
What do you mean by order of precedence and associativity?
Why do we need variables?
Can we sort hashset in java?
What is difference between wait and notify in java?
Can we force the garbage collection to run?