which one is more efficient
int x;
1. if(x==null)
2.if(null==x)
state which one either 1 or 2?
Answer Posted / priyanka
2. if(null==x) is correct
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Can we write any code after throw statement?
What will happen when using pass by reference in java?
Explain wait() method of object class ?
What is locale?
What if constructor is protected in java?
What is literal example?
What’s meant by anonymous class?
How many types of interfaces are there?
What is method in research paper?
What is a boolean flag in java?
Can we initialize the final blank variable?
What is a nested list?
Explain about version control?
Can you run java program without main method?
Explain creating threads by implementing runnable class?