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 the return type of the main method?
How do you allocate memory to object?
How to use Media tracker Class.
What are static variables and functions?
Are variables stored in ram?
What is object-oriented paradigm?
What is stream api in java8?
What is a private class in java?
What do you mean by platform independence of Java?
Do I need java on my computer?
What are the loops in java?
What are the 3 types of control structures?
How many bytes are a float?
What is the diffrence between inner class and nested class?
Why java is made?