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 / amit singh
answer is that compile time error
because what you did i don't know what i saw i know
else if(7=x+3)
it not a condition you are using the assignment operator
in place of (7==x+3)
amitsing2008@gmail.com
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What does three dots mean in java?
How do singleton patterns work?
What does the @override annotation do?
Tell us something about an iterator.
Why are functions called methods in java?
What is an empty string in css?
What is the biggest integer?
What happens if we don’t override run method ?
What is a values collection view ?
How does arrays sort work in java?
What is better- service oriented or batch oriented solutions?
What is the benefit of lambda expressions?
How many types of classes are there in java?
Is java an ide?
Define a java class.