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
In java how do we copy objects?
Is null keyword in java?
Why do we override tostring method in java?
What are the two types of java?
Does java arraylist maintain insertion order?
What is string immutability?
Which collection is thread safe in java?
How do you sort arrays in java?
What do you mean by thread safe?
What is a layout manager and what are different types of layout managers available in java awt?
In case of inheritance what is the execution order of constructor and destructor?
What is the difference between state-based unit testing and interaction-based unit testing?
Explain what access modifiers can be used for variables?
What is nullpointerexception in java?
How can you set the applet size?