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 happens if we don’t define serial version uid?
Can a method be overloaded based on different return type but same argument type?
What is java volatile?
What is composition in java?
When we should use serialization?
What is the console in java?
What are format specifiers in java?
What does string intern() method do?
How will you add panel to a frame?
Explain OOPs concept.
Is minecraft java edition free?
What data type is a string?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
why java uses class level type casting ?
What is the diffrence between inner class and nested class?