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
Differentiate between stringbuffer and string?
Can java hashmap have duplicate keys?
Is java 11 paid version?
What is the syntax and characteristics of a lambda expression? Explain
How thread scheduler schedule the task?
what is mutual exclusion? : Java thread
How does singleton class work?
How garbage collection is done in java?
Explain about sets?
What is preflight request?
What is reverse function?
What is the difference between multitasking and multithreading in Java
How do you convert boolean to boolean?
What is nested interface?
What is jit compiler ?