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
How do I stop concurrentmodificationexception?
What is math floor in java?
Can you declare a private method as static?
What is lossy conversion in java?
What is meant by object oriented programming – oop?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is type conversion in java?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is a bufferedreader?
What is a top level class in java?
Tell me the Importent classes in net package?
What is threaded programming and when is it used? : Java thread
What is a default method?
How does hashmap work in java ?
What is Enum in Java?