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;
}
}
Answers were Sorted based on User's Feedback
Answer / pranali bhise
It will result in Compile time error due to 3 reasons
1) The parenthesis '(' after public is not allowed.
2) The space between "assign" and "x" is not allowed
3) 7 = x + 3 is not allowed as a variable is needed on the
left hand side of the assignment operator.
| Is This Answer Correct ? | 15 Yes | 0 No |
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 |
What are the 6 mandatory procedures for iso 9001?
What is AppletStub?
What is the meaning of flag day?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What are Advatages of Overloading and Overridding.
What is the difference between overriding & overloading?
What is difference between an object and a class?
why interaction with server using javascript is difficult
What is core java called?
What is the difference in between cpp and java? Can u explain in detail?
What is a treemap in java?
Java support what type of parameter passing ?